mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 12:58:37 +00:00
01e489c77b
* Reduces checkstyle errors in dao * Reduces checkstyle errors in data-bus * Reduces checkstyle errors in data-locality * Reduces checkstyle errors in data-mapper * Reduces checkstyle errors in data-transfer-object * Reduces checkstyle errors in decorator
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
