com.alibaba.druid.proxy.jdbc
Class DataSourceProxyImpl

java.lang.Object
  extended by com.alibaba.druid.proxy.jdbc.DataSourceProxyImpl
All Implemented Interfaces:
DataSourceProxy, DataSourceProxyImplMBean

public class DataSourceProxyImpl
extends Object
implements DataSourceProxy, DataSourceProxyImplMBean

Author:
wenshao

Constructor Summary
DataSourceProxyImpl(Driver rawDriver, DataSourceProxyConfig config)
           
 
Method Summary
 ConnectionProxy connect(Properties info)
           
 long createConnectionId()
           
 long createResultSetId()
           
 long createStatementId()
           
 long createTransactionId()
           
 CompositeDataSupport getCompositeData()
           
 DataSourceProxyConfig getConfig()
           
 Properties getConnectProperties()
           
 Date getCreatedTime()
           
 String getDataSourceMBeanDomain()
           
 JdbcDataSourceStat getDataSourceStat()
           
 String getDbType()
           
 String[] getFilterClasses()
           
 long getId()
           
 String getName()
           
 String getProperties()
           
 List<Filter> getProxyFilters()
           
 Driver getRawDriver()
           
 String getRawDriverClassName()
           
 int getRawDriverMajorVersion()
           
 int getRawDriverMinorVersion()
           
 String getRawJdbcUrl()
           
 String getRawUrl()
           
 String getUrl()
           
 void setId(long id)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceProxyImpl

public DataSourceProxyImpl(Driver rawDriver,
                           DataSourceProxyConfig config)
Method Detail

getDbType

public String getDbType()
Specified by:
getDbType in interface DataSourceProxy

getRawDriver

public Driver getRawDriver()
Specified by:
getRawDriver in interface DataSourceProxy

getRawUrl

public String getRawUrl()
Specified by:
getRawUrl in interface DataSourceProxyImplMBean

connect

public ConnectionProxy connect(Properties info)
                        throws SQLException
Throws:
SQLException

getConfig

public DataSourceProxyConfig getConfig()

getId

public long getId()

setId

public void setId(long id)

getName

public String getName()
Specified by:
getName in interface DataSourceProxy
Specified by:
getName in interface DataSourceProxyImplMBean

getUrl

public String getUrl()
Specified by:
getUrl in interface DataSourceProxy
Specified by:
getUrl in interface DataSourceProxyImplMBean

getProxyFilters

public List<Filter> getProxyFilters()
Specified by:
getProxyFilters in interface DataSourceProxy

getFilterClasses

public String[] getFilterClasses()
Specified by:
getFilterClasses in interface DataSourceProxyImplMBean

getRawDriverClassName

public String getRawDriverClassName()
Specified by:
getRawDriverClassName in interface DataSourceProxyImplMBean

getCreatedTime

public Date getCreatedTime()
Specified by:
getCreatedTime in interface DataSourceProxyImplMBean

getRawDriverMajorVersion

public int getRawDriverMajorVersion()
Specified by:
getRawDriverMajorVersion in interface DataSourceProxyImplMBean

getRawDriverMinorVersion

public int getRawDriverMinorVersion()
Specified by:
getRawDriverMinorVersion in interface DataSourceProxyImplMBean

getDataSourceMBeanDomain

public String getDataSourceMBeanDomain()

getProperties

public String getProperties()
Specified by:
getProperties in interface DataSourceProxyImplMBean

getConnectProperties

public Properties getConnectProperties()
Specified by:
getConnectProperties in interface DataSourceProxy

getCompositeData

public CompositeDataSupport getCompositeData()
                                      throws JMException
Throws:
JMException

getRawJdbcUrl

public String getRawJdbcUrl()
Specified by:
getRawJdbcUrl in interface DataSourceProxy

createConnectionId

public long createConnectionId()
Specified by:
createConnectionId in interface DataSourceProxy

createStatementId

public long createStatementId()
Specified by:
createStatementId in interface DataSourceProxy

createResultSetId

public long createResultSetId()
Specified by:
createResultSetId in interface DataSourceProxy

createTransactionId

public long createTransactionId()
Specified by:
createTransactionId in interface DataSourceProxy

getDataSourceStat

public JdbcDataSourceStat getDataSourceStat()
Specified by:
getDataSourceStat in interface DataSourceProxy


Copyright © 2012 Alibaba Group. All Rights Reserved.