Why do we use DAO?

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



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

2298


CANDOR Services, a leading provider of next-generation staffing services, draws from unparalleled resources and expertise to offer you innovative, quality workforce solutions. We have openings for "J2EE ARCHITECT" with one of our clients. Client is CMM Level 5 company. Location : Hyderabad Roles A J2EE Architect with expertise in Web Architecture (covering Spring MVC, AOP, Webflow, Struts, Tiles, Hibernate, JAAS, Web Application Performance Turning & Measurement) as part of Solutions Architecture Group: Position involves in providing architectural vision, conceptualize and provide architectural approaches, create models and specifications, and validating the architecture against requirements and assumptions. Also involves in providing oversight over ongoing projects as a reviewer and auditor Educational Requirements A minimum of BS or MS (MS preferred) in Computer Science or Engineering or equivalent experience in the IT industry. Skill Sets Overall 8-10 Years of experience in IT industry with 3-4 Years of experience in Service industry Technology Skills Java, J2EE, MVC Frameworks (Struts/WebWork/JSF/Spring), Spring, AOP, WebFlow, ORM Tools (Hibernate/Ibatis/JDO/Tapestry), App servers, Databases, JAAS Web Application Performance Tuning & Measurement 6+ years Java software development experience. 4+ years of enterprise Java development, with emphasis on web-based applications. Strong relational database and SQL skills (5+ years). Mail to : anuradha.k@candorservices.co.in

3080


What is a j2ee container?

583


What is j2ee module?

593


What is build file?

530






Who is java developer?

519


What is layout in java?

469


What is connector?

576


Why java is a platform?

464


How do you run a java program?

466


How many types of objects are there in java?

467


J2ee is a container centric architecture. Explain.

518


What is comment?

535


What are types of j2ee clients?

506


What is 2 stands for in j2ee?

520