The primary purpose of the DAO pattern is to separate persistence -related issues from general business rules and workflows. We don't want the business or workflow logci to depend on or have any knowledge of what data access technology is actually used.
The DAO pattern introduces an interface for defining the persistence operations that the business layer can access, hiding the actual implementation. (This approach represents the Strategy Design Pattern.). The implementation for this interface will vary depending on the persistence technology being used, but the DAO interface can largely remain the same.
The DAO pattern introduces an interface for defining the persistence operations that the business layer can access, hiding the actual implementation. (This approach represents the Strategy Design Pattern.). The implementation for this interface will vary depending on the persistence technology being used, but the DAO interface can largely remain the same.
Comments
Post a Comment