From 621793ed2d966f6dcc1cb6e390ffd92bee5fe861 Mon Sep 17 00:00:00 2001 From: Ilkka Seppala Date: Sat, 3 Oct 2015 20:34:15 +0300 Subject: [PATCH] Improved DAO Javadoc --- dao/src/main/java/com/iluwatar/dao/App.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dao/src/main/java/com/iluwatar/dao/App.java b/dao/src/main/java/com/iluwatar/dao/App.java index ac6794973..851153f22 100644 --- a/dao/src/main/java/com/iluwatar/dao/App.java +++ b/dao/src/main/java/com/iluwatar/dao/App.java @@ -5,8 +5,14 @@ import java.util.List; /** * + * Data Access Object (DAO) is an object that provides an abstract interface to some type of database or other + * persistence mechanism. By mapping application calls to the persistence layer, DAO provide some specific data + * operations without exposing details of the database. This isolation supports the Single responsibility principle. + * It separates what data accesses the application needs, in terms of domain-specific objects and data types + * (the public interface of the DAO), from how these needs can be satisfied with a specific DBMS. + *

* With the DAO pattern, we can use various method calls to retrieve/add/delete/update data without directly - * interacting with the data. The below example demonstrates basic operations(CRUD): select, add, update, and delete. + * interacting with the data. The below example demonstrates basic CRUD operations: select, add, update, and delete. * */ public class App {