Skip to content

DATA ACCESS OBJECT PATTERN - #1578

Closed
Nilabhro29 wants to merge 1 commit into
iluwatar:masterfrom
Nilabhro29:master
Closed

Nilabhro29 wants to merge 1 commit into
iluwatar:masterfrom
Nilabhro29:master

Conversation

@Nilabhro29

Copy link
Copy Markdown

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.

Data Access Object Interface - This interface defines the standard operations to be performed on a model object(s).

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.

Model Object or Value Object - This object is simple POJO containing get/set methods to store data retrieved using DAO class.

Implementation
We are going to create a Student object acting as a Model or Value Object.StudentDao is Data Access Object Interface.StudentDaoImpl is concrete class implementing Data Access Object Interface. DaoPatternDemo, our demo class, will use StudentDao to demonstrate the use of Data Access Object pattern.

@ibrahimAlii

Copy link
Copy Markdown
Contributor

Hi @Nilabhro29 DAO pattern is already exist on the repo, if you have any improvements for current one you can create a new pull request

@iluwatar iluwatar self-assigned this Dec 1, 2020
@iluwatar iluwatar added this to the 1.24.0 milestone Dec 1, 2020
@iluwatar

iluwatar commented Dec 1, 2020

Copy link
Copy Markdown
Owner

@iluwatar iluwatar closed this Dec 1, 2020
@iluwatar

iluwatar commented Dec 1, 2020

Copy link
Copy Markdown
Owner

@all-contributors please add @ibrahimAlii for review

@allcontributors

Copy link
Copy Markdown
Contributor

@iluwatar

I've put up a pull request to add @ibrahimAlii! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants