O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required