in Education by

What is Data Access Object Pattern(DAO) pattern?

1 Answer

0 votes
by

What is Data Access Object Pattern(DAO) pattern?

Data Access Object Pattern or DAO pattern is used to separate low level data accessing API or operations from high level business services. Following are the participants in Data Access Object Pattern.

Data Access Object Interface - This interface defines the standard operations to be performed on a model object(s).

Data Access Object concrete class - This class implements above interface. This class is responsible to get data from a data source which can be database / xml or any other storage mechanism.

Model Object or Value Object - This object is simple POJO containing get/set methods to store data retrieved using DAO class.

Related questions

0 votes
    How to get the object of DAO in spring framework? A. Using Spring Dependency injection B. Using new keyword...
asked Nov 8, 2022 in Education by JackTerrance
0 votes
    This is kind of hard to explain, I hope my English is sufficient: I have a class "A" which ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    This is kind of hard to explain, I hope my English is sufficient: I have a class "A" which ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    Which design pattern represents a way to access all the objects in a collection? (a) Iterator pattern (b) Facade ... & JDBC of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which design pattern represents a way to access all the objects in a collection? (a) Iterator pattern (b ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Data can be inserted, updated and deleted from a table by using a __________ object in ms access Select the correct answer from above options...
asked Dec 14, 2021 in Education by JackTerrance
0 votes
    data can be inserted, updated and deleted from a table by using _______ object on MS access Select the correct answer from above options...
asked Dec 14, 2021 in Education by JackTerrance
0 votes
    is there a way to validate the pattern of an input by it's event object (without using a form)? ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 5, 2022 in Education by JackTerrance
0 votes
    is there a way to validate the pattern of an input by it's event object (without using a form)? ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 3, 2022 in Education by JackTerrance
0 votes
    In the same way that you can use JSON in javascript? At least the static properties? Or maybe even ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    Which design pattern ensures that only one object of particular class gets created? (a) Singleton pattern (b) Filter ... JDBC of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
0 votes
    What is Transfer Object pattern?...
asked Nov 7, 2020 in Education by Editorial Staff
0 votes
    What is Null Object pattern?...
asked Nov 7, 2020 in Education by Editorial Staff
0 votes
    For example, assuming I can generate this page but won't be able to hard-code the article number, ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 2, 2022 in Education by JackTerrance
...