nerdexam
Oracle

1Z0-805 · Question #27

Given: Which design pattern moves the getPerson, createPerson, deletePerson, and updatePerson methods to a new class?

The correct answer is B. DAO. We move the most abstract highest level methods into a separate class. Note:Data Access Object Abstracts and encapsulates all access to a data source Manages the connection to the data source to obtain and store data Makes the code independent of the data sources and data…

Building Database Applications with JDBC

Question

Given:

Which design pattern moves the getPerson, createPerson, deletePerson, and updatePerson methods to a new class?

Exhibits

1Z0-805 question #27 exhibit 1
1Z0-805 question #27 exhibit 2

Options

  • ASingleton
  • BDAO
  • CFactory
  • DComposition

How the community answered

(29 responses)
  • A
    7% (2)
  • B
    76% (22)
  • C
    14% (4)
  • D
    3% (1)

Explanation

We move the most abstract highest level methods into a separate class. Note:Data Access Object Abstracts and encapsulates all access to a data source Manages the connection to the data source to obtain and store data Makes the code independent of the data sources and data vendors (e.g. plain-text, xml, LDAP, MySQL, Oracle, DB2)

Topics

#DAO pattern#design patterns#CRUD operations

Community Discussion

No community discussion yet for this question.

Full 1Z0-805 Practice