JAVA learning notes (JDBC)
JDBC
Today's goal
Master the CRUD of JDBCUnderstand the role of various objects in JDBCMaster the use of Druid
1. JDBC overview
In the development, we use java language, so it is necessary to operate the data in the database through Java language. This is the JDBC to learn next.
1.1 JDBC concept
JDBC is a set of API s that use ...
Posted by herrin on Mon, 31 Jan 2022 23:07:44 +0100
About JDBC
JDBC core technology
Lecturer: Song Hongkang
Microblog: Shang Silicon Valley - Song Hongkang
Chapter 1: JDBC overview
1.1 data persistence
Persistence: save data to a power down storage device for later use. In most cases, especially for enterprise applications, data persistence means saving the data in memory to the hard disk for " ...
Posted by jrodd32 on Mon, 24 Jan 2022 22:27:01 +0100
Mybatis source code - caching mechanism
prefacestay Mybatis source code - execution process of Executor In this article, the first level cache and second level cache in Mybatis will be described in combination with examples and source code.textI Display of L1 cache mechanismIn Mybatis, if the same SQL statement is executed multiple times, Mybatis provides a level-1 cache mechanism to ...
Posted by idgeit on Mon, 03 Jan 2022 17:07:16 +0100
Detailed explanation of common code examples for adding, deleting, changing and checking JDBC database
Basic operation of JDBC
In order to reuse the code and improve the development efficiency, it is very necessary to design the addition, deletion, modification and query of JDBC database.
JDBC data operation steps are generally divided into the following five steps:
1, Load database driver class
Class.forName("com.mysql.cj.jdbc.Driver"); ...
Posted by enlight on Tue, 28 Dec 2021 03:29:14 +0100
Database operation through SpringBoot + JdbcTemplate
1. Overview of jdbctemplage
JdbcTemplage is located at org springframework. jdbc. Under the core package, the most basic JDBC operations are encapsulated, which simplifies the operation process of JDBC.
2. How to use it?
Start with the code and understand how to use it according to the code: (1) Register BaseJdbc first
package com.dechnic.c ...
Posted by andremta on Sat, 25 Dec 2021 19:44:36 +0100
[Java JDBC] basic concepts of JDBC, quick start, detailed explanation of JDBC interfaces and classes, and use of precompiled placeholders
Getting started with JDBC
Take notes according to the pictures and texts of the course for your review when necessary
1.JDBC concept
Java DataBase Connectivity: Java database connection, Java language operation databaseJDBC essence: actually, it is a set of rules defined by the official (sun company) to operate all relational databases, ...
Posted by chintansshah on Thu, 23 Dec 2021 18:32:40 +0100
Explain the implementation and optimization of JDBC in detail
JDBC details
brief introduction
JDBC refers to Java database connection. It is a standard Java application programming interface (JAVA API) used to connect Java programming language and a wide range of databases. Fundamentally, JDBC is a specification. It provides a complete set of interfaces that allow portable access to the underlying dat ...
Posted by virva on Tue, 21 Dec 2021 05:47:19 +0100
Java database connection (JDBC)
JDBC: JDBC essence: it is actually a set of rules defined by the official (sun company) to operate all relational databases, that is, interfaces. Each database manufacturer implements this interface and provides database driver jar package. We can use this set of interfaces (JDBC) to program, and the real executed code is to drive the implement ...
Posted by DoomyCheese on Mon, 20 Dec 2021 08:10:50 +0100
Java operation database (IV. JDBC tool class encapsulation and testing)
I believe that through the analysis, reading and understanding of the articles in front of Xiaobian, readers can have a certain content understanding. Let's have a more in-depth understanding of JDBC tools together with Xiaobian!
catalogue
Encapsulation of JDBC tool class
Why encapsulate tool classes?
Encapsulated tool class (in the too ...
Posted by non_zero on Sat, 11 Dec 2021 13:59:03 +0100
JDBC -- transaction ORM (object relational database mapping) DAO (data access object)
Transaction It exists in both SQL server and Mysql It refers to the smallest unit to complete an application processing, which is composed of one or more statements operating on the database. If all operations are successful before submitting a failure, all operations will be cancelled and restored to the previous state.
1. Cases where transac ...
Posted by starsol on Thu, 09 Dec 2021 09:32:42 +0100