惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Security Affairs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Jina AI
Jina AI
P
Palo Alto Networks Blog
GbyAI
GbyAI
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
Blog — PlanetScale
Blog — PlanetScale
S
Schneier on Security
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
雷峰网
雷峰网
T
Tenable Blog
人人都是产品经理
人人都是产品经理
T
Tor Project blog
C
Cyber Attacks, Cyber Crime and Cyber Security
AWS News Blog
AWS News Blog
Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
Scott Helme
Scott Helme
SecWiki News
SecWiki News
C
CERT Recently Published Vulnerability Notes
Recorded Future
Recorded Future
I
InfoQ
Security Archives - TechRepublic
Security Archives - TechRepublic
Help Net Security
Help Net Security
Cloudbric
Cloudbric
C
Check Point Blog
Engineering at Meta
Engineering at Meta
TaoSecurity Blog
TaoSecurity Blog
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
N
News and Events Feed by Topic
云风的 BLOG
云风的 BLOG
MyScale Blog
MyScale Blog
腾讯CDC
量子位
Application and Cybersecurity Blog
Application and Cybersecurity Blog
K
Kaspersky official blog
Vercel News
Vercel News
F
Full Disclosure
T
Troy Hunt's Blog
Forbes - Security
Forbes - Security
S
Security @ Cisco Blogs

博客园 - lonecloud

联通云主机安装openclaw 可食用教程 win10 出现你的设备有工作或学校账户方面的问题,请再次登录以访问组织资源 解决MAC升级系统后,GIT报错missing xcrun Git 在Mac下的中文乱码问题 记一个使用fyne-cross编译的坑 windows gcc 遇到的问题解决 Git 提交界面中文乱码解决 WARNING: IPv4 forwarding is disabled. Networking will not work. postgresql数据类型 Mybatis源码-详解Mybatis日志设计 JDBC 规范中文版 4.2 -第四章 概览 JDBC 规范中文版 4.2 -第三章 新特性 JDBC 规范中文版 4.2 -第二章 目标 JDBC 规范中文版 4.2 -第一章 简介 基础回顾-线程的几种状态 一文读懂BeanFactory和FactoryBean区别 IDEA技巧-自动导包(Auto import)以及自动优化包 Drools学习教程 - 3. 规则属性 Drools学习教程 - 2. 规则文件语法
JDBC 规范中文版 4.2- 第五章 类和接口
lonecloud · 2020-11-29 · via 博客园 - lonecloud

类和接口

这些事组成JDBC的接口和类

5.1 java.sql

JDBC的核心APi是在java.sql包内。以下列举了对应的接口和类以及枚举

  • 类&枚举:
    • java.sql.BatchUpdateException
    • java.sql.DataTruncation
    • java.sql.Date
    • java.sql.DriverManager
    • java.sql.DriverPropertyInfo
    • java.sql.JDBCType
    • java.sql.PseudoColumnUsage
    • java.sql.RowIdLifeTime
    • java.sql.SQLClientInfoException
    • java.sql.SQLDataException
    • java.sql.SQLException
    • java.sql.SQLFeatureNotSupportedException
    • java.sql.SQLIntegrityConstraintViolationException
    • java.sql.SQLInvalidAuthorizationSpecException
    • java.sql.SQLNonTransientConnectionException
    • java.sql.SQLNonTransientException
    • java.sql.SQLWarning
    • java.sql.Time
    • java.sql.Timestamp
    • java.sql.Types
  • 接口:
    • java.sql.Array
    • java.sql.Blob
    • java.sql.CallableStatement
    • java.sql.Clob
    • java.sql.ClientinfoStatus
    • java.sql.Connection
    • java.sql.DatabaseMetaData
    • java.sql.Driver
    • java.sql.DriverAction
    • java.sql.NClob
    • java.sql.ParameterMetaData
    • java.sql.PreparedStatement
    • java.sql.Ref
    • java.sql.ResultSet
    • java.sql.ResultSetMetaData
    • java.sql.RowId
    • java.sql.Savepoint
    • java.sql.SQLData
    • java.sql.SQLInput
    • java.sql.SQLOutput
    • java.sql.SQLPermission
    • java.sql.SQLType
    • java.sql.SQLXML
    • java.sql.Statement
    • java.sql.Struct
    • java.sql.Wrapper

以下类和接口在JDBC 4.2 API中是新的或更新的。

  • 更新的类或接口

    • java.sql.BatchUpdateException
    • java.sql.CallableStatement
    • java.sql.Connection
    • java.sql.DatabaseMetaData
    • java.sql.Date
    • java.sql.Driver
    • java.sql.DriverManager
    • java.sql.Permission
    • java.sql.PreparedStatement
    • java.sql.ResultSet
    • java.sql.SQLInput
    • java.sql.SQLOutput
    • java.sql.SQLXML
    • java.sql.Statement
    • java.sql.Types
    • java.sql.Timestamp
    • javax.sql.XADataSource
  • 新增的类或接口

    • java.sql.DriverAction
    • java.sql.JDBCType
    • java.sql.SQLType

    下图显示了java.sql包在关键类和接口之间的作用和关系。还显示了创建语句、设置参数以及检索结果的方法

5.2 javax.sql

以下为javax.sql包的类和接口

类:

  • javax.sql.ConnectionEvent
  • javax.sql.RowSetEvent
  • javax.sql.StatementEvent

接口:

  • javax.sql.CommonDataSource
  • javax.sql.ConnectionEventListener
  • javax.sql.ConnectionPoolDataSource
  • javax.sql.DataSource
  • javax.sql.PooledConnection
  • javax.sql.RowSet
  • javax.sql.RowSetInternal
  • javax.sql.RowSetListener
  • javax.sql.RowSetMetaData
  • javax.sql.RowSetReader
  • javax.sql.RowSetWriter
  • javax.sql.StatementEventListener
  • javax.sql.XAConnection
  • javax.sql.XADataSource

备注:这些javax.sql包的类和接口在JDBC2.0 中初次使用,在J2SE 1.2中是一个可选包。找J2SE1.4后,javax.sqljava.sql一样成为了Java平台的一部分

以下展示了javax.sql.DataSourcejava.sql.Connection的关系

Relationship between javax.sql.DataSource and
java.sql.Connection

以下 展示了连接池的关系
Relationships involved in connection pooling

下图展示了分布式事务有关的组成部分
distributed transaction support

以下为RowSet的关系

RowSet relationships