The Data Access Object: The GeneralDAO Class

The data access object encapsulates the specifics of data access in a class design. It is intended to be a coarse-grained object, meaning that the details of the data being accessed (the columns, the data types) are not necessarily understood or managed by the class.

Note that a design pattern is a recommended solution, a desirable approach. A design pattern is not a template, though a template for a class or an interface for a class could result from the implementation of a design pattern. For that reason, there is no template for a data access object; there is just a set of recommendations.

This data access object presents a generalized approach to retrieving data. It has not been written to access ...

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.