• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What is DAO?

 
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have gone through this forum about the diff. bet. DAO and Entity Beans. Is it something like a framework so that it gives us the API/methods for doing all kinds of data access?
Then, another qn. came to my mind is that what is the diff. bet. JDBC and DAO?
Your answers pls...
Guru
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://java.sun.com/blueprints/patterns/DAO.html

JDBC is a API provided by SUN to access relational database. DAO is defined by the developer. Suppose I want to access Employee info which may be stored in some flat files,RELATIONAL database or some OODMS. I define an interface with methods that will allow me retrieve, update or delete functionlities. My business logic will talk to the interface only.
I could then implement the interface for say, Oracle Database and have SQL code inside the implemented methods.
In case I need to access employee info stored in some other datastore I will be creating another implementation class without touching the business logic.
[ August 14, 2003: Message edited by: Pradeep Bhat ]
 
Ranch Hand
Posts: 427
 
We've gotta get close enough to that helmet to pull the choke on it's engine and flood his mind! Or, we could just read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic