Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 is wildfly java?

861


Is string a primitive data type in java?

843


What is the build file?

875


What is jaap?

909


Is c++ more secure than java?

848


Define thin client?

903


What is application component provider?

947


What is application client?

936


Explain jta, jndi, and jms.

962


What is B2B?

931


Which framework is best for java?

900


What is component contract?

887


What is deployment descriptor?

933


What is mean by j2ee?

808


What are j2ee concepts?

894