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?

Answers were Sorted based on User's Feedback



Why do we use DAO?..

Answer / surajkumar.java

Access to data varies depending upon the source of data
(Relational Database, Object Oriented Database, Flat File
and Business to Business integration systems). Such
disparate data sources offer challenges to create a direct
dependency between application code and data access code.
Including the connectivity and data access code within
application code introduces a tight coupling between the
components (JSP, Servlet or Struts Action) and the data
source implementation. Such code dependencies in components
make it difficult and tedious to migrate, the application
from one type of data source to another. Data Access Object
(DAO) makes abstract and encapsulate all access to the data
source. The DAO manages the connection with the data source
to obtain and store data. The DAO acts as an adapter
between the application components (JSP, Servlet or Struts
Action) and the data source.

Is This Answer Correct ?    41 Yes 4 No

Why do we use DAO?..

Answer / sk.bilal ahmed

Data Access Object is an important component in business
applications.It provides flexibility to change an
application's persistence mechanism over time without the
need to re-engineer application logic that interacts with
the Data Access Object tier

Is This Answer Correct ?    21 Yes 1 No

Why do we use DAO?..

Answer / 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

More J2EE Interview Questions

What is a plugin in java?

0 Answers  


What is java api for xml-based rpc (jax-rpc)?

0 Answers  


to update a batch in a table in jdbc which method of statement object is used

1 Answers  


What is j2ee explain the component of j2ee application?

0 Answers  


How to call main class with in main class?

2 Answers   IBM, Infosys,


What is a jpanel in java?

0 Answers  


Enlist the technologies embraced in j2ee?

0 Answers  


What are the main components of a class in java?

0 Answers  


What is japplet in java?

0 Answers  


What is a j2ee container?

0 Answers  


Which server is best for java?

0 Answers  


where exactly the servlets and jsp's are stored?

6 Answers   CG-VAK, JHJ, TCS,


Categories