S
S
Spring5参考指南
Home
点赞
搜索文档…
简介
前言
核心技术
测试
数据访问
1.事务管理
2.DAO支持
3.JDBC
3.1选择JDBC数据库访问方法
3.2包层次结构
3.3使用JDBC核心类控制基本JDBC处理和错误处理
3.4控制数据库连接
3.5JDBC批处理操作
3.6使用SimpleJdbc
3.7将JDBC操作建模为Java对象
3.8参数和数据值处理的常见问题
3.9嵌入式数据库支持
3.10初始化数据源
4.ORM
5.使用Object-XML映射封装XML
Web Servlet
Web Reactive
由
GitBook
提供支持
3.JDBC
Spring Framework JDBC抽象提供的值可能最好通过下表中列出的操作序列来显示。 该表显示了Spring负责的操作以及你负责的操作。
Action
Spring
You
Define connection parameters.
x
Open the connection.
x
Specify the SQL statement.
x
Declare parameters and provide parameter values
x
Prepare and execute the statement.
x
Set up the loop to iterate through the results (if any).
x
Do the work for each iteration.
x
Process any exception.
x
Handle transactions.
x
Close the connection, the statement, and the resultset.
x
Spring框架负责所有可能使JDBC成为乏味的API的低级细节。
以前
2.DAO支持
下一个
3.1选择JDBC数据库访问方法
最近更新
8mo ago
复制链接