The GeneralAggregateVO Class
The GeneralAggregateVO class demonstrates one possible implementation of the aggregate value object pattern. As discussed previously, this design pattern encapsulates fine-grained access to the data in an aggregated form. While the value object pattern is sometimes referred to as immutable and unchanging, this pattern is specifically designed for updates, since one of the main goals of the object is to cache update operations at the client level (see figure 35-2).
Figure 35-2. The Value Object as a Data Cache
The GeneralAggregateVO class makes heavy use of object-oriented “has a” type of object associations. A great ...
Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.