File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes DAO Pattern 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 » Databases » JDBC
Bookmark "DAO Pattern" Watch "DAO Pattern" New topic
Author

DAO Pattern

Mark Henryson
Ranch Hand

Joined: Jul 11, 2005
Posts: 200
Hi,

What is DAO Pattern? I want to learn the DAO Pattern. Any simple tutorial for beginners other than the sun site. Please provide sample/example coding of what is DAO Pattern.

I think DAO Pattern is used for Database. If I want to add a employee ID and Employee name into the database. How to design this simple thing in the DAO Pattern. What are the advantages of using DAO Pattern. Please give me some direction in it.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by Mark Henryson:
What is DAO Pattern? I want to learn the DAO Pattern. Any simple tutorial for beginners other than the sun site. Please provide sample/example coding of what is DAO Pattern.

Data Access Object


I think DAO Pattern is used for Database.


Yes, thats why it is less related to servlet.
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
In the Hibernate literature, they seem to like to refer to it as the DAO anti-pattern


There is no emoticon for what I am feeling!
Dave Tuttle
Ranch Hand

Joined: Jan 18, 2006
Posts: 34
Go to the source: http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html
(first hit on google search).
--Dave
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60766
    
  65

Dave, it's really not necessary to post a link that's already been posted.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: DAO Pattern
 
Similar Threads
How automatically DAO methods get called upon
Class design
DAO Pattern & Head First Series
How automatically DAO methods get called upon
dao pattern