mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 10:58:42 +00:00
4904d7eea0
* Add custom license header style in order to comply with Google's Checkstyle format * Update license headers to comply with Google's Checkstyle format
layout, title, folder, permalink, categories, tags
| layout | title | folder | permalink | categories | tags | ||
|---|---|---|---|---|---|---|---|
| pattern | Data Access Object | dao | /patterns/dao/ | Persistence Tier |
|
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
