4 Mart 2015 Çarşamba

Core J2EE Tasarım desenleri 1 : DAO Data Access Object

Data Access Object

Problem:
Veriye erişilmesi ve değiştirilmesini encapsulate etmek istiyoruz.

İstekler:
  • You want to implement data access mechanisms to access and manipulate data in a persistent storage.
  • You want to decouple the persistent storage implementation from the rest of your application.
  • You want to provide a uniform data access API for a persistent mechanism to various types of data sources, such as RDBMS, LDAP, OODB, XML repositories, flat files, and so on.
  • You want to organize data access logic and encapsulate proprietary features to facilitate maintainability and portability.
Çözüm:

Use a Data Access Object to abstract and encapsulate all access to the persistent store. The Data Access Object manages the connection with the data source to obtain and store data.

Hiç yorum yok:

Yorum Gönder