Package com.alibaba.druid.proxy
Class DruidDriver
java.lang.Object
com.alibaba.druid.proxy.DruidDriver
- All Implemented Interfaces:
DruidDriverMBean,Driver
- Author:
- wenshao [szujobs@hotmail.com]
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptsURL(String url) connect(String url, Properties info) static intcreateDriver(String className) static intlongString[]static DruidDriverintintgetPropertyInfo(String url, Properties info) static ConcurrentMap<String,DataSourceProxyImpl> booleanstatic DataSourceProxyConfigparseConfig(String url, Properties info) static booleanregisterDriver(Driver driver) void
-
Field Details
-
DEFAULT_PREFIX
- See Also:
-
DRIVER_PREFIX
- See Also:
-
PASSWORD_CALLBACK_PREFIX
- See Also:
-
NAME_PREFIX
- See Also:
-
JMX_PREFIX
- See Also:
-
FILTERS_PREFIX
- See Also:
-
-
Constructor Details
-
DruidDriver
public DruidDriver()
-
-
Method Details
-
registerDriver
-
getInstance
-
createDataSourceId
public static int createDataSourceId() -
createSqlStatId
public static int createSqlStatId() -
acceptsURL
- Specified by:
acceptsURLin interfaceDriver- Throws:
SQLException
-
connect
- Specified by:
connectin interfaceDriver- Throws:
SQLException
-
parseConfig
- Throws:
SQLException
-
createDriver
- Throws:
SQLException
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersionin interfaceDriver- Specified by:
getMajorVersionin interfaceDruidDriverMBean
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersionin interfaceDriver- Specified by:
getMinorVersionin interfaceDruidDriverMBean
-
getPropertyInfo
- Specified by:
getPropertyInfoin interfaceDriver- Throws:
SQLException
-
jdbcCompliant
public boolean jdbcCompliant()- Specified by:
jdbcCompliantin interfaceDriver- Specified by:
jdbcCompliantin interfaceDruidDriverMBean
-
getConnectCount
public long getConnectCount()- Specified by:
getConnectCountin interfaceDruidDriverMBean
-
getAcceptPrefix
- Specified by:
getAcceptPrefixin interfaceDruidDriverMBean
-
getDataSourceUrls
- Specified by:
getDataSourceUrlsin interfaceDruidDriverMBean
-
getProxyDataSources
-
getParentLogger
- Specified by:
getParentLoggerin interfaceDriver- Throws:
SQLFeatureNotSupportedException
-
resetStat
public void resetStat()- Specified by:
resetStatin interfaceDruidDriverMBean
-
getDruidVersion
- Specified by:
getDruidVersionin interfaceDruidDriverMBean
-