Data Access Object Pattern or DAO pattern is used to separate low level data accessing API or operations from high level business services.
Following are the participants in Data Access Object Pattern:
1. Data Access Object Interface - This interface defines the standard operations to be performed on a model objects.
2. Data Access Object concrete class - This class implements above interface. This class is responsible to get data from a data source which can be database / xml or any other storage mechanism.
3. Model Object or Value Object - This object is simple POJO containing get/set methods to store data retrieved using DAO class.
Posted Date:- 2021-09-06 22:56:10