What is a Data Access Object (DAO) design pattern?

Pragya Keshap answered on February 10, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • Describe about DAO in Spring framework?
  • Explain the advantages of using DAO module?

  • What is a Data Access Object (DAO) design pattern?

    0

    DAO design pattern is used in the data persistent layer of a Java

    application. It mainly uses OOPS principle of Encapsulation.

    By using DAO pattern it makes the application loosely coupled and

    less dependent on actual database.

    We can even implement some in-memory database like H2 with

    DAO to handle the unit-testing.

    In short, DAO hides the underlying database implementation from

    the class that accesses the data via DAO object.

    Recently we can combine DAO with Spring framework to inject any

    DB implementation.

    https://www.digitalocean.com/community/tutorials/dao-design-pattern

    Popularity 1/10 Helpfulness 1/10 Language java
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 10 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.