Share on Google+Share on Google+

Java Value Object Pattern

In this tutorial you will learn about Value Object Pattern of java

Value Object Pattern

Some entities contains a group of attribute that are always access together. To access these attribute though a remote interface causes network traffic and consumes unnecessary server resources. To come out from this problem you can Value Object Design Pattern. It encapsulate all the data as a single object and provide a single method to send and retrieve data.

Suppose in an enterprise application an entity bean implements a persistent business components. It exposes the value of its attribute by providing a methods (getter and setter) for each attributes. When client needed the value of this attribute then he has to call these getter method for each attribute. to reduce this overhead it is good to use Value Object Design Pattern to transport data from entity bean to its clients.


  Value Object Design Pattern



Posted on: October 26, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.


Advertisement null