DAO pattern

u0206397

Senior Member
Joined
Jul 15, 2009
Messages
764
Reaction score
0
Is the DAO pattern for:

  1. abstracting database access only
  2. it is used for all sorts of data retrieval and storage underneath including both database, network upload/download, file reading/writing to local disk

The key thing is to hide the data storage details from the business logic?
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,391
Reaction score
1,180
Is the DAO pattern for abstracting database access only, or it is used for all sorts of data retrieval and storage underneath including both database, network upload/download, file reading/writing to local disk?

The key thing is to hide the data storage details from the business logic?

DAO is just an OOPL concept. Yes it is nothing more than an abstraction. DAO is used more than just database. you can use it to access other data store like elasticsearch as long as the provider offers via the data store interface which can be virtually anything as long as you can fit the operations into a data store
 

u0206397

Senior Member
Joined
Jul 15, 2009
Messages
764
Reaction score
0
DAO is just an OOPL concept. Yes it is nothing more than an abstraction. DAO is used more than just database. you can use it to access other data store like elasticsearch as long as the provider offers via the data store interface which can be virtually anything as long as you can fit the operations into a data store

OK thank you for confirming.
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ. Forum members and moderators are responsible for their own posts.

Please refer to our Community Guidelines and Standards, Terms of Service and Member T&Cs for more information.
Top