Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

value objects topics?

 
Tom Barns
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
This is a required topic for the certification,please if someone can explain to me about it in general and where can i find information or tutorials or anything to cover it.
any help will be appreciated .
Thanks.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a good link: http://java.sun.com/j2ee/blueprints/design_patterns/value_object/index.html
Here's an excerpt from my JSP notes:
11.1.Purpose
- 11.1.1.to provide a coarse-grained view of remote, fine-grained data.
- 11.1.2.as a local-access alternative to entity beans. Like an entity bean, a value object represents a business object, but it doesn't need to provide business methods on top of its data; it only provides methods to read its data, which makes it an ideal candidate for local access rather than remote access.
11.2.Benefits
- 11.2.1.Improved network traffic and response time. Fewer remote calls are made and less data is passed back and forth.
- 11.2.2.Reduced load on enterprise beans. A client makes only one remote call to the enterprise bean to fetch the value object for the attributes it wants; from then on, whenever the client needs to use those attributes, it can just get them locally from the value object.
11.3.Potential Liability
- 11.3.1.Stale data. Whenever a value object is backed by a volatile set of values (such as a stock's price and trading volume, for example) it should only be treated as a snapshot of those values.
------------------
Miftah Khan
- Sun Certified Programmer for the Java� 2 Platform
- Sun Certified Web Component Developer for the Java� 2 Platform, Enterprise Edition
[This message has been edited by Miftah Khan (edited October 05, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic