DAO

Data Access Object (DAO) classes provide simple and flexible access to the database by through use of the JDBC API and SQL templates.

A DAO class is created for every entity in the application. It is the responsibility of a DAO to manage the data for its associated entity. For example, for a "Customer" entity a CustomerDAO class is created.

Each DAO class has an associated SQL template file that contains sql templates used to query and update the database.

DAO classes use Transfer Objects to transfer data to and from the database.

Related topics

Transfer Objects
SQL template