Value Object
Value Object is a serializable object which would contain lot of atomic values.
These are normal java classes which may have different constructors (to fill in the value of different data) and getter methods to get access to these data.
VOs are used as a course grained call which gets lots of data in one go (this reduces remote overhead)
The VO is made serializable for it to be transferred between different tiers within a single remote method invocation.
Other related patterns are :
Value Object Assembler pattern
This pattern allows for composing a Value Object from different sources which could be EJBs, DAOs or Java objects.
Value List Handler pattern
This pattern provides a sound solution for query execution and results processing.
This pattern provides a sound solution for query execution and results processing.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.