Why do we use DAO?

Answer Posted / sanjay kumar singh

If i want to hide the persistence logic from other
components and reduce the direct dependency to implement
flexible system with less maintenance in future then we use DAO.

Using DAO to encapsulates all access to the persistence
store and regardless what type of data store you used DAO
provide uniform API to its client.

DAO completely hides the data store implementation from its
client.

When data store implementation is changed, no modification
is required in the clients of DAO because DAO will be
exposed to the client as an interface which will not be
changed. Only changes is its DAOimplementation.

Is This Answer Correct ?    19 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the four components of j2ee application?

564


What do you understand by j2ee?

481


Give some advantages of orm (object-relational mapping)?

551


What are java front end tools?

506


How does event listener work in java?

472






What is the best java course?

503


What is the use of jit compiler in java?

483


Is java safe to download?

490


Why java is called portable language?

492


What are the modules of j2ee?

510


What is j2ee component?

507


Is string an object in java?

456


What is a thin client?

577


What is meant by applet in java?

472


What is the latest technology used in java?

507