2015-08-13 23:54:40 +02:00
|
|
|
---
|
|
|
|
layout: pattern
|
|
|
|
title: Data Access Object
|
|
|
|
folder: dao
|
2015-08-15 18:03:05 +02:00
|
|
|
permalink: /patterns/dao/
|
2015-08-16 17:07:36 +05:30
|
|
|
categories: architectural
|
2015-08-13 23:54:40 +02:00
|
|
|
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
|
2015-08-15 18:03:05 +02:00
|
|
|
* when you want to avoid writing multiple data retrieval/persistence layers
|