public class DruidDriver extends Object implements Driver, DruidDriverMBean
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_PREFIX |
static String |
DRIVER_PREFIX |
static String |
FILTERS_PREFIX |
static String |
JMX_PREFIX |
static String |
NAME_PREFIX |
static String |
PASSWORD_CALLBACK_PREFIX |
| 构造器和说明 |
|---|
DruidDriver() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
acceptsURL(String url) |
Connection |
connect(String url,
Properties info) |
static int |
createDataSourceId() |
Driver |
createDriver(String className) |
static int |
createSqlStatId() |
String |
getAcceptPrefix() |
long |
getConnectCount() |
String[] |
getDataSourceUrls() |
String |
getDruidVersion() |
static DruidDriver |
getInstance() |
int |
getMajorVersion() |
int |
getMinorVersion() |
Logger |
getParentLogger() |
DriverPropertyInfo[] |
getPropertyInfo(String url,
Properties info) |
static ConcurrentMap<String,DataSourceProxyImpl> |
getProxyDataSources() |
boolean |
jdbcCompliant() |
static DataSourceProxyConfig |
parseConfig(String url,
Properties info) |
static boolean |
registerDriver(Driver driver) |
void |
resetStat() |
public static boolean registerDriver(Driver driver)
public static DruidDriver getInstance()
public static int createDataSourceId()
public static int createSqlStatId()
public boolean acceptsURL(String url) throws SQLException
acceptsURL 在接口中 DriverSQLExceptionpublic Connection connect(String url, Properties info) throws SQLException
connect 在接口中 DriverSQLExceptionpublic static DataSourceProxyConfig parseConfig(String url, Properties info) throws SQLException
SQLExceptionpublic Driver createDriver(String className) throws SQLException
SQLExceptionpublic int getMajorVersion()
getMajorVersion 在接口中 DruidDriverMBeangetMajorVersion 在接口中 Driverpublic int getMinorVersion()
getMinorVersion 在接口中 DruidDriverMBeangetMinorVersion 在接口中 Driverpublic DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
getPropertyInfo 在接口中 DriverSQLExceptionpublic boolean jdbcCompliant()
jdbcCompliant 在接口中 DruidDriverMBeanjdbcCompliant 在接口中 Driverpublic long getConnectCount()
getConnectCount 在接口中 DruidDriverMBeanpublic String getAcceptPrefix()
getAcceptPrefix 在接口中 DruidDriverMBeanpublic String[] getDataSourceUrls()
getDataSourceUrls 在接口中 DruidDriverMBeanpublic static ConcurrentMap<String,DataSourceProxyImpl> getProxyDataSources()
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger 在接口中 DriverSQLFeatureNotSupportedExceptionpublic void resetStat()
resetStat 在接口中 DruidDriverMBeanpublic String getDruidVersion()
getDruidVersion 在接口中 DruidDriverMBeanCopyright © 2012 Alibaba Group. All Rights Reserved.