Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 503 Bytes

File metadata and controls

18 lines (14 loc) · 503 Bytes
layout pattern
title Data Access Object
folder dao
permalink /patterns/dao/
categories Architectural
tags Java

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

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