encyclopegia.org

Data access object

In software, a data access object (DAO) is a pattern that provides an abstract interface to some type of database or other persistence mechanism. By mapping application calls to the persistence layer, the DAO provides data operations without exposing database details. This isolation supports the single responsibility principle. It separates the data access the application needs, in terms of domain-specific objects and data types (the DAO's public interface), from how these needs can be satisfied with a specific DBMS (the implementation of the DAO). Although this design pattern is applicable to most programming languages, most software with persistence needs, and most databases, it is traditionally associated with Java EE applications and with relational databases (accessed via the JDBC API because of its origin in Sun Microsystems' best practice guidelines "Core J2EE Patterns". This object can be found in the Data Access layer of the 3-Tier Architecture. There are various ways in which this object can be implemented: * One DAO for each table. * One DAO for all the tables for a particular DBMS. * Where the SELECT query is limited only to its target table and cannot incorporate JOINS, UNIONS, subqueries and Common Table Expressions (CTEs) * Where the SELECT query can contain anything that the DBMS allows.

In software, a data access object (DAO) is a pattern that provides an abstract interface to some type of database or other persistence mechanism. By mapping application calls to the persistence layer, the DAO provides data operations without exposing database details. This isolation supports the single responsibility principle. It separates the data access the application needs, in terms of domain-specific objects and data types (the DAO's public interface), from how these needs can be satisfied with a specific DBMS (the implementation of the DAO). Although this design pattern is applicable to most programming languages, most software with persistence needs, and most databases, it is traditionally associated with Java EE applications and with relational databases (accessed via the JDBC API because of its origin in Sun Microsystems' best practice guidelines "Core J2EE Patterns". This object can be found in the Data Access layer of the 3-Tier Architecture. There are various ways in which this object can be implemented: One DAO for each table. One DAO for all the tables for a particular DBMS. Where the SELECT query is limited only to its target table and cannot incorporate JOINS, UNIONS, subqueries and Common Table Expressions (CTEs) Where the SELECT query can contain anything that the DBMS allows.

References

No reference rows published for this article.

Cite this article

MLA

"Data access object." encyclopegia.org, 2025, https://encyclopegia.org/wiki/data-access-object. Accessed 24 November 2026.

Chicago

"Data access object." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/data-access-object.

APA

encyclopegia.org. (2025). Data access object. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/data-access-object

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

GM Ecotec engine

enwiki · references available

Bell Aliant

enwiki · references available

Arabic numeral variations

enwiki · references available

White Bluff

enwiki · references available

USS Argus

enwiki · references available

Lake Sebu (municipality)

enwiki · references available

Tripartite classification of authority

enwiki · references available

Extreme points of the United Kingdom

enwiki · references available

Dover Demon

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1311923399 · 0.5 · snapshot enwiki-001311923399

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.