Data access object

Data access object
This article is about the data access object design pattern in object-oriented software design. For the Microsoft library of the same name, see Data Access Objects.

In computer software, a data access object (DAO) is an object that provides an abstract interface to some type of database or persistence mechanism, providing some specific operations without exposing details of the database. It provides a mapping from application calls to the persistence layer. This isolation separates the concerns of what data accesses the application needs, in terms of domain-specific objects and data types (the public interface of the DAO), and how these needs can be satisfied with a specific DBMS, database schema, etc. (the implementation of the DAO).

This design pattern is equally applicable to most programming languages, most types of software with persistence needs and most types of database, but 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[1] ("Core J2EE Patterns") for that platform.

Contents

Advantages

The advantage of using data access objects is the relatively simple and rigorous separation between two important parts of an application that can and should know almost nothing of each other, and which can be expected to evolve frequently and independently. Changing business logic can rely on the same DAO interface, while changes to persistence logic do not affect DAO clients as long as the interface remains correctly implemented.

In the specific context of the Java programming language, Data Access Objects as a design concept can be implemented in a number of ways. This can range from a fairly simple interface that separates the data access parts from the application logic, to frameworks and commercial products. DAO coding paradigms can require some skill. Use of technologies like Java persistence technologies and JDO ensures to some extent that the design pattern is implemented. Technologies like Enterprise JavaBeans come built into application servers and can be used in applications that use a JEE application server. Commercial products like TopLink are available based on Object-relational mapping (ORM). Popular open source ORM products include Hibernate, Ebean, pureQuery, iBATIS and Apache OpenJPA.

The expected benefit of use of Data Access Objects in a Java scenario is:

  • Improved efficiency and performance of the data layer since it is standard reusable software.[citation needed]
  • Modifications can be made to the DAO implementation without altering other decoupled modules of the application.

See also

External links

Tools and Frameworks

References

  1. ^ "Core J2EE Patterns - Data Access Objects". Sun Microsystems Inc.. 2007-08-02. http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html. 

Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Data Access Object — Saltar a navegación, búsqueda En software de computadores, un Data Access Object (DAO, Objeto de Acceso a Datos) es un componente de software que suministra una interfaz común entre la aplicación y uno o más dispositivos de almacenamiento de… …   Wikipedia Español

  • Data Access Object — (DAO, deutsch: „Datenzugriffsobjekt“) ist ein Entwurfsmuster, das den Zugriff auf unterschiedliche Arten von Datenquellen (z. B. Datenbanken, Dateisystem, etc.) so kapselt, dass die angesprochene Datenquelle ausgetauscht werden kann, ohne dass… …   Deutsch Wikipedia

  • Data Access Object — This article is about the Data Access Object design pattern in object oriented software design, not about the Data Access Objects library from Microsoft. In computer software, a Data Access Object (DAO) is an object that provides an abstract… …   Wikipedia

  • Data Access Object — В программном обеспечении data access object (DAO)  это объект, который предоставляет абстрактный интерфейс к какому либо типу базы данных или механизму хранения. Определённые возможности предоставляются независимо от того, какой механизм… …   Википедия

  • Data Access Object — Objet d accès aux données Un objet d accès aux données (en Anglais Data Access Object ou DAO) est un patron de conception (c est à dire un modèle pour concevoir une solution) utilisé dans les architectures logicielles objet. Sommaire 1… …   Wikipédia en Français

  • data access object — noun an object in programming that provides an abstract interface to some type of persistence mechanism, providing some specific operations without exposing details of the persistence layer …   Wiktionary

  • Data transfer object — (DTO),[1][2] is a design pattern used to transfer data between software application subsystems. DTOs are often used in conjunction with data access objects to retrieve data from a database.[1][2] The difference between data transfer objects and… …   Wikipedia

  • Data Transfer Object — Data Transfer Objects (DTO), formerly known as Value Objects or VO, are a design pattern used to transfer data between software application subsystems. DTOs are often used in conjunction with Data Access Objects to retrieve data from a… …   Wikipedia

  • Data Access Objects — is a general programming interface for database access on Microsoft Windows systems and should not be confused with the Data Access Object design pattern used in object oriented software design. History DAO were originally called VT Objects. DAO… …   Wikipedia

  • Data Access Objects — Saltar a navegación, búsqueda Data Access Objects (DAO, Objetos de Acceso a Datos) es una interfaz orientada a objetos creada por Microsoft la cual permitía a las primeras versiones de Microsoft Access y Visual Basic utilizar el motor de base de… …   Wikipedia Español

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”