java - JDBC驱动程序和驱动程序

标签 java jdbc

我正在准备 Oracle Certified Java Proffesiona (OCP) 认证。这是我第一次接触 JDBC。在我正在准备认证的书中(Kathy Sierra 是作者之一)中提到:

"The collection of the implementation classes is called the JDBC driver. A JDBC driver (lowercase “d“) is the collection of classes required to support the API, whereas Driver (uppercase “D“) is one of the implementations required in a driver."

关于驱动程序,作者想提及什么? Driver 是一个类吗?在 JDBC 驱动程序中实现 Driver 是一个强制要求吗?

最佳答案

Driver是 JDBC 驱动程序的基本接口(interface)

The interface that every driver class must implement.

例如 OracleDriver

Implemented Interfaces: java.sql.Driver

关于java - JDBC驱动程序和驱动程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56989316/

相关文章:

python - PySpark 无法将 mariaDb 表中的值解码为整数

java - 变量初始化时出现 ExceptionInInitializerError

Java/SQL Server 2008 R2 Express 连接问题

用于特定查询的 jdbc getMetaData

java - onTouchEvent() 没有按我的预期工作

java - android如何设计这个布局

java - Magnolia 6.1.1 分析器(小写字母和重音符号)

java - 如何在 JDBC 模板中使用 UUID?

mysql - 在 Netbeans 上使用 JDBC 将 java 程序与 MySQL 链接

java - 事务中的多个批量插入