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

i want test pattern of zylog company and some examples also

2282


How do I become an expert in java?

467


What is layout in java?

455


What id url?

510


What is delegation?

541






Is java is fully object oriented?

502


Why is java considered dynamic?

542


What is the container?

554


Is java is a technology?

514


what is interface in java ?can you explain with simple example?and what is the difference between abstract and interface?

2046


Hi Friends. I want complete technical flow of j2ee project with following technologies. jsp , servlet , Struts , Hibernate , (should follow mvc-2 design pattern) . with DAO ,DTO SERVICE layers .

4387


What is 2 stands for in j2ee?

506


What is a gui in java?

470


Which java ide is best?

484


What is jbutton in java?

488