mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-26 01:58:34 +00:00
fbb12b53ba
I did the job and splitted up the readme, hopefully everything was splitted correctly...
17 lines
481 B
Markdown
17 lines
481 B
Markdown
---
|
|
layout: pattern
|
|
title: Data Access Object
|
|
folder: dao
|
|
categories: pattern_cat
|
|
tags: pattern_tag
|
|
---
|
|
|
|
**Intent:** Object provides an abstract interface to some type of database or
|
|
other persistence mechanism.
|
|
|
|

|
|
|
|
**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 |