aspose file tools
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
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "def of DAO" Watch "def of DAO" New topic

def of DAO

raghuram bikkani

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.

I agree. Here's the link:
subject: def of DAO