Home>Article>Java> what is dao java

what is dao java

藏色散人
藏色散人 Original
2020-05-14 11:47:44 3878browse

what is dao java

dao What is java?

DAO is the Data Access Object data access interface.

Data access: As the name suggests, it means dealing with the database. Sandwiched between business logic and database resources. The DAO pattern is introduced in the core J2EE pattern as follows: In order to build a robust J2EE application, all access operations to the data source should be abstractly encapsulated in a public API.

what is dao java

#In programming language, it is to establish an interface, which defines all transaction methods that will be used in this application. In this application, this interface is used when interacting with the data source, and a separate class is written to implement this interface and logically correspond to this specific data storage.

Extended information:

This is the mvc architecture of java. It is just like the scene in the workshop in a factory. Each department is responsible for different processes and work. Dao (data access object) is mainly responsible for Code that handles database operations, such as adding, deleting, modifying, and querying data in the database.

General operations The steps for modifying, adding, and deleting database operations are very similar. I wrote a public DAO class. When modifying, adding, or deleting database operations, the public DAO class is directly called.

The DAO model achieves the following goals by providing a data abstraction layer interface to the business layer:

1. Separation of data storage logic.

2. Separation of underlying implementation of data access.

3. Separation of resource management and scheduling.

For more java technical articles, please visit thejava learningtutorial column!

The above is the detailed content of what is dao java. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What is java char Next article:What is java char