• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

def of DAO

 
raghuram bikkani
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WHAT IS THE meant by of DAO
 
Dave Tuttle
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Data Access Object. It's a common design pattern.
 
sammaiah kyatham
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic