Home Java Javagetting Started what is dao java

what is dao java

May 14, 2020 am 11:47 AM

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 the java learning tutorial 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 of this Website
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)