July 2001
Intermediate to advanced
656 pages
15h 51m
English
It is sometimes desirable to defer the materialization of an object until it is absolutely required, usually for performance reasons. For example, suppose that ProductSpecification objects reference a Manufacturer object, but only very rarely does it need to be materialized from the database. Only rare scenarios cause a request for manufacturer information, such as manufacturer rebate scenarios in which the company name and address are required.
The deferred materialization of “children” objects is known as lazy materialization. Lazy materialization can be implemented using the Virtual Proxy GoF pattern—one of many variations of Proxy.
A Virtual Proxy is a proxy for another object (the real subject ...
Read now
Unlock full access