September 2003
Intermediate to advanced
368 pages
10h 16m
English
DAO Factory
To hide the process of selecting an appropriate persistence layer or set DAO objects from the business tier, and to allow configuration of DAO features at runtime in a centralized manner (Figure B-3).

Includes a business tier or a presentation tier object.
Determines how to create the DAO object.
Responsible for creating the DAO objects.
The implementation itself.
The client, a business tier or presentation tier object, calls a method on a DAO factory object, requesting a DAO object. The DAO factory is responsible for determining how to create the DAO object. This may involve implementation-specific DAO factories responsible for creating the DAO objects.
Read now
Unlock full access