public class DruidDataSourceC3P0Adapter extends Object implements DataSource, DruidDataSourceC3P0AdapterMBean
构造器和说明 |
---|
DruidDataSourceC3P0Adapter() |
toString
public PrintWriter getLogWriter() throws SQLException
getLogWriter
在接口中 CommonDataSource
SQLException
public void setLogWriter(PrintWriter out) throws SQLException
setLogWriter
在接口中 CommonDataSource
SQLException
public void setLoginTimeout(int seconds) throws SQLException
setLoginTimeout
在接口中 CommonDataSource
SQLException
public int getLoginTimeout() throws SQLException
getLoginTimeout
在接口中 CommonDataSource
SQLException
public <T> T unwrap(Class<T> iface) throws SQLException
unwrap
在接口中 Wrapper
SQLException
public boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor
在接口中 Wrapper
SQLException
public Connection getConnection() throws SQLException
getConnection
在接口中 DataSource
SQLException
public Connection getConnection(String username, String password) throws SQLException
getConnection
在接口中 DataSource
SQLException
public String getDriverClass()
public void setDriverClass(String driverClass)
public String getJdbcUrl()
getJdbcUrl
在接口中 DruidDataSourceC3P0AdapterMBean
public Driver getDriver()
public void setDriver(Driver driver)
public void setJdbcUrl(String jdbcUrl)
public Properties getProperties()
getProperties
在接口中 DruidDataSourceC3P0AdapterMBean
public void setProperties(Properties properties)
public String getUser()
getUser
在接口中 DruidDataSourceC3P0AdapterMBean
public void setUser(String user)
public String getPassword()
public void setPassword(String password)
public int getCheckoutTimeout()
public void setCheckoutTimeout(int checkoutTimeout)
public boolean isAutoCommitOnClose()
public void setAutoCommitOnClose(boolean autoCommitOnClose)
public int getIdleConnectionTestPeriod()
public void setIdleConnectionTestPeriod(int idleConnectionTestPeriod)
public int getInitialPoolSize()
public void setInitialPoolSize(int initialPoolSize)
public int getMaxIdleTime()
public void setMaxIdleTime(int maxIdleTime)
public int getMaxPoolSize()
public void setMaxPoolSize(int maxPoolSize)
public int getMinPoolSize()
public void setMinPoolSize(int minPoolSize)
public boolean isTestConnectionOnCheckout()
public void setTestConnectionOnCheckout(boolean testConnectionOnCheckout)
public boolean isTestConnectionOnCheckin()
public void setTestConnectionOnCheckin(boolean testConnectionOnCheckin)
public String getPreferredTestQuery()
public void setPreferredTestQuery(String preferredTestQuery)
public void setFilters(String filters) throws SQLException
SQLException
public String getDataSourceName()
public int getNumConnections()
public int getNumIdleConnections()
public int getNumBusyConnections()
public int getNumUnclosedOrphanedConnections()
public int getNumConnectionsDefaultUser()
public int getNumIdleConnectionsDefaultUser()
public int getNumBusyConnectionsDefaultUser()
public int getMaxStatementsPerConnection()
public void setMaxStatementsPerConnection(int maxStatementsPerConnection)
public int getMaxStatements()
public void setMaxStatements(int maxStatements)
public int getUnreturnedConnectionTimeout()
public void setUnreturnedConnectionTimeout(int unreturnedConnectionTimeout)
public boolean isDebugUnreturnedConnectionStackTraces()
public void setDebugUnreturnedConnectionStackTraces(boolean debugUnreturnedConnectionStackTraces)
public int getAcquireRetryAttempts()
public void setAcquireRetryAttempts(int acquireRetryAttempts)
public int getAcquireRetryDelay()
public void setAcquireRetryDelay(int acquireRetryDelay)
public boolean isBreakAfterAcquireFailure()
public void setBreakAfterAcquireFailure(boolean breakAfterAcquireFailure)
public boolean isEnable()
isEnable
在接口中 DruidDataSourceC3P0AdapterMBean
public void shrink()
shrink
在接口中 DruidDataSourceC3P0AdapterMBean
public int getWaitThreadCount()
public int getLockQueueLength()
public void close()
close
在接口中 DruidDataSourceC3P0AdapterMBean
public String getConnectionTesterClassName()
public void setConnectionTesterClassName(String connectionTesterClassName)
public String getAutomaticTestTable()
public void setAutomaticTestTable(String automaticTestTable)
public boolean isForceIgnoreUnresolvedTransactions()
public void setForceIgnoreUnresolvedTransactions(boolean forceIgnoreUnresolvedTransactions)
public boolean isUsesTraditionalReflectiveProxies()
public void setUsesTraditionalReflectiveProxies(boolean usesTraditionalReflectiveProxies)
public String getUserOverridesAsString()
public void setUserOverridesAsString(String userOverridesAsString)
public int getMaxAdministrativeTaskTime()
public void setMaxAdministrativeTaskTime(int maxAdministrativeTaskTime)
public int getMaxIdleTimeExcessConnections()
public void setMaxIdleTimeExcessConnections(int maxIdleTimeExcessConnections)
public int getMaxConnectionAge()
public void setMaxConnectionAge(int maxConnectionAge)
public String getConnectionCustomizerClassName()
public void setConnectionCustomizerClassName(String connectionCustomizerClassName)
public String getFactoryClassLocation()
public void setFactoryClassLocation(String factoryClassLocation)
public int getAcquireIncrement()
public void setAcquireIncrement(int acquireIncrement)
public String getOverrideDefaultUser()
public void setOverrideDefaultUser(String overrideDefaultUser)
public String getOverrideDefaultPassword()
public void setOverrideDefaultPassword(String overrideDefaultPassword)
public int getPropertyCycle()
public void setPropertyCycle(int propertyCycle)
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
在接口中 CommonDataSource
SQLFeatureNotSupportedException
Copyright © 2012 Alibaba Group. All Rights Reserved.