| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DATABASE_PROPERTY_KEY
Key used to retreive the database value from the properties instance
passed to the driver.
|
static String |
HOST_PROPERTY_KEY
Key used to retreive the hostname value from the properties instance
passed to the driver.
|
static boolean |
isLoadSto
是否加载了Sto包,true表示加载
|
static Method |
method |
static String |
PASSWORD_PROPERTY_KEY
Key used to retreive the password value from the properties instance
passed to the driver.
|
static String |
PORT_PROPERTY_KEY
Key used to retreive the port number value from the properties instance
passed to the driver.
|
static String |
PROPERTY_KEY_CONN_TYPE |
static String |
PROPERTY_KEY_IPS |
static Object |
stoKey |
static String |
USER_PROPERTY_KEY
Key used to retreive the username value from the properties instance
passed to the driver.
|
| 构造器和说明 |
|---|
Driver()
Construct a new driver and register it with DriverManager
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
acceptsURL(String url)
检索驱动程序是否认为它可以打开到给定 url 的连接
通常,如果驱动程序理解该 url 中指定的子协议,则这些驱动程序将返回 true;否则,返回 false
|
Connection |
connect(String url,
Properties info)
试图创建一个到给定 URL 的数据库连接。
|
static void |
deregister() |
int |
getMajorVersion()
获得此驱动程序的主版本号
|
int |
getMinorVersion()
获得此驱动程序的次版本号
|
Logger |
getParentLogger() |
DriverPropertyInfo[] |
getPropertyInfo(String url,
Properties info)
The getPropertyInfo method is intended to allow a generic GUI tool to
discover what properties it should prompt a human for in order to get
enough information to connect to a database.
|
static boolean |
isRegistered() |
boolean |
jdbcCompliant()
Report whether the driver is a genuine JDBC compliant driver.
|
static void |
register() |
static void |
registerSto() |
public static boolean isLoadSto
public static Method method
public static Object stoKey
public static final String HOST_PROPERTY_KEY
public static final String PORT_PROPERTY_KEY
public static final String DATABASE_PROPERTY_KEY
public static final String USER_PROPERTY_KEY
public static final String PASSWORD_PROPERTY_KEY
public Driver()
throws SQLException
SQLExceptionpublic static void register()
public static void registerSto()
public static void deregister()
throws SQLException
SQLExceptionpublic static boolean isRegistered()
public boolean acceptsURL(String url) throws SQLException
acceptsURL 在接口中 Driverurl - - 数据库的 urlSQLException - - 如果发生数据库访问错误public Connection connect(String url, Properties info) throws SQLException
connect 在接口中 Driverurl - - 要连接到的数据库的 URLinfo - - 做为连接参数的任意字符串标记/值对的列表。通常至少应该包括 "user" 和 "password" 属性SQLException - - 如果发生数据库访问错误public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
Note that depending on the values the human has supplied so far, additional values may become necessary, so it may be necessary to iterate through several calls to getPropertyInfo
getPropertyInfo 在接口中 Driverurl - the Url of the database to connect toinfo - a proposed list of tag/value pairs that will be sent on
connect open.SQLException - if a database-access error occursDriver.getPropertyInfo(java.lang.String, java.util.Properties)public int getMajorVersion()
getMajorVersion 在接口中 Driverpublic int getMinorVersion()
getMinorVersion 在接口中 Driverpublic boolean jdbcCompliant()
XuGu jdbc driver is not SQL92 compliant
jdbcCompliant 在接口中 Driverpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger 在接口中 DriverSQLFeatureNotSupportedExceptionCopyright © 2025. All rights reserved.