What is DAO?

Questions by urs_bluevr

Showing Answers 1 - 12 of 12 Answers

Mallikanand

  • Aug 18th, 2010
 

The DAO pattern aims at simplifying the access to databases from the java applications. A DAO pattern could work with a factory class to decide which of the Database access implementations to be used at runtime. In cases where there are multiple databases available, DAO decides at runtime which database to connect to by loading the corresponding implementation.
Also, by implementing the database access via a DAO rather than any business object, a future change to the way the Database being accessed can be shielded from the application logic.

Give your answer:

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