Package com.alibaba.druid.proxy.jdbc
Class DataSourceProxyImpl
- java.lang.Object
-
- com.alibaba.druid.proxy.jdbc.DataSourceProxyImpl
-
- All Implemented Interfaces:
DataSourceProxy,DataSourceProxyImplMBean
public class DataSourceProxyImpl extends Object implements DataSourceProxy, DataSourceProxyImplMBean
- Author:
- wenshao [szujobs@hotmail.com]
-
-
Constructor Summary
Constructors Constructor Description DataSourceProxyImpl(Driver rawDriver, DataSourceProxyConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionProxyconnect(Properties info)longcreateConnectionId()longcreateMetaDataId()longcreateResultSetId()longcreateStatementId()longcreateTransactionId()CompositeDataSupportgetCompositeData()DataSourceProxyConfiggetConfig()PropertiesgetConnectProperties()DategetCreatedTime()longgetDataSourceId()StringgetDataSourceMBeanDomain()JdbcDataSourceStatgetDataSourceStat()StringgetDbType()String[]getFilterClasses()longgetId()StringgetName()StringgetProperties()List<Filter>getProxyFilters()DrivergetRawDriver()StringgetRawDriverClassName()intgetRawDriverMajorVersion()intgetRawDriverMinorVersion()StringgetRawJdbcUrl()StringgetRawUrl()StringgetUrl()voidsetId(long id)
-
-
-
Constructor Detail
-
DataSourceProxyImpl
public DataSourceProxyImpl(Driver rawDriver, DataSourceProxyConfig config)
-
-
Method Detail
-
getDbType
public String getDbType()
- Specified by:
getDbTypein interfaceDataSourceProxy
-
getRawDriver
public Driver getRawDriver()
- Specified by:
getRawDriverin interfaceDataSourceProxy
-
getRawUrl
public String getRawUrl()
- Specified by:
getRawUrlin interfaceDataSourceProxyImplMBean
-
connect
public ConnectionProxy connect(Properties info) throws SQLException
- Throws:
SQLException
-
getConfig
public DataSourceProxyConfig getConfig()
-
getDataSourceId
public long getDataSourceId()
- Specified by:
getDataSourceIdin interfaceDataSourceProxy
-
getId
public long getId()
-
setId
public void setId(long id)
-
getName
public String getName()
- Specified by:
getNamein interfaceDataSourceProxy- Specified by:
getNamein interfaceDataSourceProxyImplMBean
-
getUrl
public String getUrl()
- Specified by:
getUrlin interfaceDataSourceProxy- Specified by:
getUrlin interfaceDataSourceProxyImplMBean
-
getProxyFilters
public List<Filter> getProxyFilters()
- Specified by:
getProxyFiltersin interfaceDataSourceProxy
-
getFilterClasses
public String[] getFilterClasses()
- Specified by:
getFilterClassesin interfaceDataSourceProxyImplMBean
-
getRawDriverClassName
public String getRawDriverClassName()
- Specified by:
getRawDriverClassNamein interfaceDataSourceProxyImplMBean
-
getCreatedTime
public Date getCreatedTime()
- Specified by:
getCreatedTimein interfaceDataSourceProxyImplMBean
-
getRawDriverMajorVersion
public int getRawDriverMajorVersion()
- Specified by:
getRawDriverMajorVersionin interfaceDataSourceProxyImplMBean
-
getRawDriverMinorVersion
public int getRawDriverMinorVersion()
- Specified by:
getRawDriverMinorVersionin interfaceDataSourceProxyImplMBean
-
getDataSourceMBeanDomain
public String getDataSourceMBeanDomain()
-
getProperties
public String getProperties()
- Specified by:
getPropertiesin interfaceDataSourceProxyImplMBean
-
getConnectProperties
public Properties getConnectProperties()
- Specified by:
getConnectPropertiesin interfaceDataSourceProxy
-
getCompositeData
public CompositeDataSupport getCompositeData() throws JMException
- Throws:
JMException
-
getRawJdbcUrl
public String getRawJdbcUrl()
- Specified by:
getRawJdbcUrlin interfaceDataSourceProxy
-
createConnectionId
public long createConnectionId()
- Specified by:
createConnectionIdin interfaceDataSourceProxy
-
createStatementId
public long createStatementId()
- Specified by:
createStatementIdin interfaceDataSourceProxy
-
createResultSetId
public long createResultSetId()
- Specified by:
createResultSetIdin interfaceDataSourceProxy
-
createMetaDataId
public long createMetaDataId()
- Specified by:
createMetaDataIdin interfaceDataSourceProxy
-
createTransactionId
public long createTransactionId()
- Specified by:
createTransactionIdin interfaceDataSourceProxy
-
getDataSourceStat
public JdbcDataSourceStat getDataSourceStat()
- Specified by:
getDataSourceStatin interfaceDataSourceProxy
-
-