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

Why is j2ee needed?

946


What do you mean by the deployment descriptor?

1040


What is containers in java?

917


Define orm and its working in j2ee?

1099


What is certificate authority?

1034


What is layout manager in java?

934


What is event handling in java?

944


What is javafx java?

1102


What is jetty in java?

1062


What is the container?

1029


What is java transaction api (jta)?

987


What is basic authentication?

1052


What is form-based authentication?

1012


Is string a primitive data type in java?

996


What is a thin client?

1103