public class MysqlDriver
extends java.lang.Object
implements java.sql.Driver
说明:MysqlDriver 类是线程安全的,可在多个线程中使用同一个实例。
| 构造器和说明 |
|---|
MysqlDriver() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
acceptsURL(java.lang.String url) |
java.sql.Connection |
connect(java.lang.String url,
java.util.Properties info) |
int |
getMajorVersion() |
int |
getMinorVersion() |
java.util.logging.Logger |
getParentLogger() |
java.sql.DriverPropertyInfo[] |
getPropertyInfo(java.lang.String url,
java.util.Properties info) |
boolean |
jdbcCompliant() |
public java.sql.Connection connect(java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
connect 在接口中 java.sql.Driverjava.sql.SQLExceptionpublic boolean acceptsURL(java.lang.String url)
acceptsURL 在接口中 java.sql.Driverpublic java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
java.util.Properties info)
getPropertyInfo 在接口中 java.sql.Driverpublic int getMajorVersion()
getMajorVersion 在接口中 java.sql.Driverpublic int getMinorVersion()
getMinorVersion 在接口中 java.sql.Driverpublic boolean jdbcCompliant()
jdbcCompliant 在接口中 java.sql.Driverpublic java.util.logging.Logger getParentLogger()
throws java.sql.SQLFeatureNotSupportedException
getParentLogger 在接口中 java.sql.Driverjava.sql.SQLFeatureNotSupportedExceptionCopyright © 2019. All Rights Reserved.