Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Separate DAO Classes

 
anuj thite
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic