Data Access ObjectSeparates business logic from data access logic.
The generated DAOs are based on table schemes defined by the XML database file.
Each of the implementing methods in a DAO issues a single sql statement and acts on a single table row based on a primary key.
A DAO can easily be extended to act on multiple rows. DAOs can be combined in entity EJBs to provide persistant components. They can also be used by session EJBs for database access.
UML diagram of generated DAO files