java-design-patterns/dao at EventQueueRefactoring · zhenjun85/java-design-patterns · GitHub
Skip to content

Latest commit

 

History

History
 
 

Folders and files

README.md

layout pattern
title Data Access Object
folder dao
permalink /patterns/dao/
categories Persistence Tier
tags
Java
Difficulty-Beginner

Intent

Object provides an abstract interface to some type of database or other persistence mechanism.

alt text

Applicability

Use the Data Access Object in any of the following situations

  • when you want to consolidate how the data layer is accessed
  • when you want to avoid writing multiple data retrieval/persistence layers

Credits