This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes def of DAO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "def of DAO" Watch "def of DAO" New topic
Author

def of DAO

raghuram bikkani
Greenhorn

Joined: Jan 18, 2006
Posts: 16
WHAT IS THE meant by of DAO
Dave Tuttle
Ranch Hand

Joined: Jan 18, 2006
Posts: 34
Data Access Object. It's a common design pattern.
sammaiah kyatham
Ranch Hand

Joined: Aug 03, 2003
Posts: 104
DAO stands for Data Access Object, which contains all data base related methods.

For example you want get the list of employees from Data base.

class EmpDAO{
public ArrayList getEmployees(){
//Query to get all employees
//Keep the data in ValueObjects
//Add the valueobjects to ArrayList
return theArrayList
}

}

This design pattern helps to separates the database related code and presentation/application code.


Thnx,
sam
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: def of DAO
 
Similar Threads
flow from JSP to DB
Thread problem
EJB with DB Access
Session Bean + DAO
local varriable vs instance varriable