aspose file tools*
The moose likes JDBC and the fly likes Separate DAO Classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Separate DAO Classes" Watch "Separate DAO Classes" New topic
Author

Separate DAO Classes

anuj thite
Ranch Hand

Joined: Apr 14, 2009
Posts: 49
Hello all Members,

In my application, Can i Write all query related stuff in Separate DAO class ?

Can I make Separate DAO class for each table in Database ?

Can I write one separate method for a each query that i fired in my program?

Can you tell me In this way, professional development occur?

Please guide me in this & give your expert suggestions.

Thanks in advance.
Agador Paloi
Ranch Hand

Joined: Jan 24, 2006
Posts: 118
Anuj -

I would write the DAO as a seperate class(es) . I useally design the DAO classes around the object classes I need in my application not so much the tables. A DAO class can instanciate or persist an instance of an object in my application.

Agad
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Separate DAO Classes
 
Similar Threads
overdoing patterns
Building Effective Service layer using Spring+Hibernate
JUnit Test Cases with Hibernate
Single JDBC class for multiple Java Applications
synchronization of the connection object