Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 650 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 650 Bytes
layout pattern
title Data Access Object
folder dao
permalink /patterns/dao/
categories Architectural
tags
Data access

Intent

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

Class diagram

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