com.alibaba.druid.proxy
类 DruidDriver

java.lang.Object
  继承者 com.alibaba.druid.proxy.DruidDriver
所有已实现的接口:
DruidDriverMBean, Driver

public class DruidDriver
extends Object
implements Driver, DruidDriverMBean

作者:
wenshao

字段摘要
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()
           
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

DEFAULT_PREFIX

public static final String DEFAULT_PREFIX
另请参见:
常量字段值

DRIVER_PREFIX

public static final String DRIVER_PREFIX
另请参见:
常量字段值

PASSWORD_CALLBACK_PREFIX

public static final String PASSWORD_CALLBACK_PREFIX
另请参见:
常量字段值

NAME_PREFIX

public static final String NAME_PREFIX
另请参见:
常量字段值

JMX_PREFIX

public static final String JMX_PREFIX
另请参见:
常量字段值

FILTERS_PREFIX

public static final String FILTERS_PREFIX
另请参见:
常量字段值
构造方法详细信息

DruidDriver

public DruidDriver()
方法详细信息

registerDriver

public static boolean registerDriver(Driver driver)

getInstance

public static DruidDriver getInstance()

createDataSourceId

public static int createDataSourceId()

createSqlStatId

public static int createSqlStatId()

acceptsURL

public boolean acceptsURL(String url)
                   throws SQLException
指定者:
接口 Driver 中的 acceptsURL
抛出:
SQLException

connect

public Connection connect(String url,
                          Properties info)
                   throws SQLException
指定者:
接口 Driver 中的 connect
抛出:
SQLException

parseConfig

public static DataSourceProxyConfig parseConfig(String url,
                                                Properties info)
                                         throws SQLException
抛出:
SQLException

createDriver

public Driver createDriver(String className)
                    throws SQLException
抛出:
SQLException

getMajorVersion

public int getMajorVersion()
指定者:
接口 DruidDriverMBean 中的 getMajorVersion
指定者:
接口 Driver 中的 getMajorVersion

getMinorVersion

public int getMinorVersion()
指定者:
接口 DruidDriverMBean 中的 getMinorVersion
指定者:
接口 Driver 中的 getMinorVersion

getPropertyInfo

public DriverPropertyInfo[] getPropertyInfo(String url,
                                            Properties info)
                                     throws SQLException
指定者:
接口 Driver 中的 getPropertyInfo
抛出:
SQLException

jdbcCompliant

public boolean jdbcCompliant()
指定者:
接口 DruidDriverMBean 中的 jdbcCompliant
指定者:
接口 Driver 中的 jdbcCompliant

getConnectCount

public long getConnectCount()
指定者:
接口 DruidDriverMBean 中的 getConnectCount

getAcceptPrefix

public String getAcceptPrefix()
指定者:
接口 DruidDriverMBean 中的 getAcceptPrefix

getDataSourceUrls

public String[] getDataSourceUrls()
指定者:
接口 DruidDriverMBean 中的 getDataSourceUrls

getProxyDataSources

public static ConcurrentMap<String,DataSourceProxyImpl> getProxyDataSources()

getParentLogger

public Logger getParentLogger()
                       throws SQLFeatureNotSupportedException
抛出:
SQLFeatureNotSupportedException

resetStat

public void resetStat()
指定者:
接口 DruidDriverMBean 中的 resetStat

getDruidVersion

public String getDruidVersion()
指定者:
接口 DruidDriverMBean 中的 getDruidVersion


Copyright © 2013 Alibaba Group. All Rights Reserved.