Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Design patterns

 
Dilshan Edirisuriya
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the purpose of using data access objects and value objects. I'm not clear about the concept.
 
Daniel Massie
Greenhorn
Posts: 28
 
Pratibha Malhotra
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the purpose of using data access objects and value objects. I'm not clear about the concept.


Data Access Object or DAO and Value Object or VO are two of the very frequesntly used design pattens.

value object pattern is used to encapsulate related data together so as to reduce data travel across the network.
It basically wrap multiple values so that they can be treated as a single, discrete, first-class object.


DAO onother hand is used to separate a interface from its data access functionality. When Interface and Data access functionality are very closely packaged and client decided to change the database feg Oracle to postgres then Application will have to be opened and modified. and i am sure no one would want to do that.

 
Dilshan Edirisuriya
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you guys It really helped me
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic