How Data Access Object (DAO) class will handle the data

Suppose there are 2500 records to be handled? How Data Access Object (DAO) class will handle it?

Showing Answers 1 - 7 of 7 Answers

Jagadeeswara Reddy

  • May 5th, 2006
 

In JDBC there are two types of row sets 1. Web Row Set 2. Cached Row Set By using these row set we can handle the records .

  Was this answer useful?  Yes

phdsong

  • Aug 26th, 2008
 

DAO is one of design patterns. The Data Access Object (or DAO) pattern: 1. Separates a data resource's client interface from its data access mechanisms, 2. adapts a specific data resource's access API to a generic client interface.
The DAO pattern allows data access mechanisms to change independently of the code that uses the data.

Read the following.
java . sun . com/blueprints/patterns/DAO.html
java . sun . com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html

  Was this answer useful?  Yes

When we send the data from front end like JSP or HTML etc then the controller is going to take the data and send it to service layer the service layer takes that data and send it to DAO layer in DAO layer we write the JDBC or Hibernate logic to store the data into database if any exception is occured then take the error message and put it in request object so in the forntend take the error message from request object and dispaly the error message.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions