Value Objects [Transfer Objects]


The main reason for using the value objects is because in comparison to using enterprise beans, it is always efficient to pass a single argument with multiple fields in it than passing fields individually. Also it also helps us to enforce the business rules associated with an entity in a lot easier way.
Some technologies (like EJB) have performance issues with exchanging large numbers of component data items.

Adding, changing, or deleting a component data item is much easier affecting far fewer objects. Business rules regarding allowed values for component objects are easier to identify and maintain. Additionally, technical features, such as making these objects Serializable for use with enterprise beans, are very easy to implement.
[ad#728×90]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s