public class C3P0PooledDataSource extends java.lang.Object implements C3P0PooledDataSourceMBean
| Constructor and Description |
|---|
C3P0PooledDataSource()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
void |
create()
Deprecated.
|
void |
destroy()
Deprecated.
|
int |
getAcquireIncrement()
Deprecated.
|
int |
getAcquireRetryAttempts()
Deprecated.
|
int |
getAcquireRetryDelay()
Deprecated.
|
java.lang.String |
getAutomaticTestTable()
Deprecated.
|
int |
getCheckoutTimeout()
Deprecated.
|
java.lang.String |
getConnectionTesterClassName()
Deprecated.
|
java.lang.String |
getDataSourceName()
Deprecated.
|
java.lang.String |
getDescription()
Deprecated.
|
java.lang.String |
getDriverClass()
Deprecated.
|
java.lang.String |
getFactoryClassLocation()
Deprecated.
|
int |
getIdleConnectionTestPeriod()
Deprecated.
|
int |
getInitialPoolSize()
Deprecated.
|
java.lang.String |
getJdbcUrl()
Deprecated.
|
java.lang.String |
getJndiName()
Deprecated.
|
int |
getMaxIdleTime()
Deprecated.
|
int |
getMaxPoolSize()
Deprecated.
|
int |
getMaxStatements()
Deprecated.
|
int |
getMaxStatementsPerConnection()
Deprecated.
|
int |
getMinPoolSize()
Deprecated.
|
int |
getNumBusyConnections(java.lang.String username,
java.lang.String password)
Deprecated.
|
int |
getNumBusyConnectionsAllUsers()
Deprecated.
|
int |
getNumBusyConnectionsDefaultUser()
Deprecated.
|
int |
getNumConnections(java.lang.String username,
java.lang.String password)
Deprecated.
|
int |
getNumConnectionsAllUsers()
Deprecated.
|
int |
getNumConnectionsDefaultUser()
Deprecated.
|
int |
getNumHelperThreads()
Deprecated.
|
int |
getNumIdleConnections(java.lang.String username,
java.lang.String password)
Deprecated.
|
int |
getNumIdleConnectionsAllUsers()
Deprecated.
|
int |
getNumIdleConnectionsDefaultUser()
Deprecated.
|
int |
getNumUnclosedOrphanedConnections(java.lang.String username,
java.lang.String password)
Deprecated.
|
int |
getNumUnclosedOrphanedConnectionsAllUsers()
Deprecated.
|
int |
getNumUnclosedOrphanedConnectionsDefaultUser()
Deprecated.
|
int |
getNumUserPools()
Deprecated.
|
java.lang.String |
getPassword()
Deprecated.
|
java.lang.String |
getPreferredTestQuery()
Deprecated.
|
int |
getPropertyCycle()
Deprecated.
|
java.lang.String |
getUser()
Deprecated.
|
void |
hardReset()
Deprecated.
|
boolean |
isAutoCommitOnClose()
Deprecated.
|
boolean |
isBreakAfterAcquireFailure()
Deprecated.
|
boolean |
isForceIgnoreUnresolvedTransactions()
Deprecated.
|
boolean |
isTestConnectionOnCheckin()
Deprecated.
|
boolean |
isTestConnectionOnCheckout()
Deprecated.
|
boolean |
isUsesTraditionalReflectiveProxies()
Deprecated.
|
void |
setAcquireIncrement(int acquireIncrement)
Deprecated.
|
void |
setAcquireRetryAttempts(int acquireRetryAttempts)
Deprecated.
|
void |
setAcquireRetryDelay(int acquireRetryDelay)
Deprecated.
|
void |
setAutoCommitOnClose(boolean autoCommitOnClose)
Deprecated.
|
void |
setAutomaticTestTable(java.lang.String automaticTestTable)
Deprecated.
|
void |
setBreakAfterAcquireFailure(boolean breakAfterAcquireFailure)
Deprecated.
|
void |
setCheckoutTimeout(int checkoutTimeout)
Deprecated.
|
void |
setConnectionTesterClassName(java.lang.String connectionTesterClassName)
Deprecated.
|
void |
setDataSourceName(java.lang.String name)
Deprecated.
|
void |
setDescription(java.lang.String description)
Deprecated.
|
void |
setDriverClass(java.lang.String driverClass)
Deprecated.
|
void |
setFactoryClassLocation(java.lang.String factoryClassLocation)
Deprecated.
|
void |
setForceIgnoreUnresolvedTransactions(boolean forceIgnoreUnresolvedTransactions)
Deprecated.
|
void |
setIdleConnectionTestPeriod(int idleConnectionTestPeriod)
Deprecated.
|
void |
setInitialPoolSize(int initialPoolSize)
Deprecated.
|
void |
setJdbcUrl(java.lang.String jdbcUrl)
Deprecated.
|
void |
setJndiName(java.lang.String jndiName)
Deprecated.
|
void |
setMaxIdleTime(int maxIdleTime)
Deprecated.
|
void |
setMaxPoolSize(int maxPoolSize)
Deprecated.
|
void |
setMaxStatements(int maxStatements)
Deprecated.
|
void |
setMaxStatementsPerConnection(int maxStatementsPerConnection)
Deprecated.
|
void |
setMinPoolSize(int minPoolSize)
Deprecated.
|
void |
setNumHelperThreads(int numHelperThreads)
Deprecated.
|
void |
setPassword(java.lang.String password)
Deprecated.
|
void |
setPreferredTestQuery(java.lang.String preferredTestQuery)
Deprecated.
|
void |
setPropertyCycle(int propertyCycle)
Deprecated.
|
void |
setTestConnectionOnCheckin(boolean testConnectionOnCheckin)
Deprecated.
|
void |
setTestConnectionOnCheckout(boolean testConnectionOnCheckout)
Deprecated.
|
void |
setUser(java.lang.String user)
Deprecated.
|
void |
setUsesTraditionalReflectiveProxies(boolean usesTraditionalReflectiveProxies)
Deprecated.
|
void |
softReset(java.lang.String username,
java.lang.String password)
Deprecated.
|
void |
softResetAllUsers()
Deprecated.
|
void |
softResetDefaultUser()
Deprecated.
|
void |
start()
Deprecated.
|
void |
stop()
Deprecated.
|
public void setJndiName(java.lang.String jndiName)
throws javax.naming.NamingException
setJndiName in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic java.lang.String getJndiName()
getJndiName in interface C3P0PooledDataSourceMBeanpublic java.lang.String getDescription()
getDescription in interface C3P0PooledDataSourceMBeanpublic void setDescription(java.lang.String description)
throws javax.naming.NamingException
setDescription in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic java.lang.String getDriverClass()
getDriverClass in interface C3P0PooledDataSourceMBeanpublic void setDriverClass(java.lang.String driverClass)
throws java.beans.PropertyVetoException,
javax.naming.NamingException
setDriverClass in interface C3P0PooledDataSourceMBeanjava.beans.PropertyVetoExceptionjavax.naming.NamingExceptionpublic java.lang.String getJdbcUrl()
getJdbcUrl in interface C3P0PooledDataSourceMBeanpublic void setJdbcUrl(java.lang.String jdbcUrl)
throws javax.naming.NamingException
setJdbcUrl in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic java.lang.String getUser()
getUser in interface C3P0PooledDataSourceMBeanpublic void setUser(java.lang.String user)
throws javax.naming.NamingException
setUser in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic java.lang.String getPassword()
getPassword in interface C3P0PooledDataSourceMBeanpublic void setPassword(java.lang.String password)
throws javax.naming.NamingException
setPassword in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic int getCheckoutTimeout()
getCheckoutTimeout in interface C3P0PooledDataSourceMBeanpublic void setCheckoutTimeout(int checkoutTimeout)
throws javax.naming.NamingException
setCheckoutTimeout in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic int getAcquireIncrement()
getAcquireIncrement in interface C3P0PooledDataSourceMBeanpublic void setAcquireIncrement(int acquireIncrement)
throws javax.naming.NamingException
setAcquireIncrement in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic int getAcquireRetryAttempts()
getAcquireRetryAttempts in interface C3P0PooledDataSourceMBeanpublic void setAcquireRetryAttempts(int acquireRetryAttempts)
throws javax.naming.NamingException
setAcquireRetryAttempts in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic int getAcquireRetryDelay()
getAcquireRetryDelay in interface C3P0PooledDataSourceMBeanpublic void setAcquireRetryDelay(int acquireRetryDelay)
throws javax.naming.NamingException
setAcquireRetryDelay in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic boolean isAutoCommitOnClose()
isAutoCommitOnClose in interface C3P0PooledDataSourceMBeanpublic void setAutoCommitOnClose(boolean autoCommitOnClose)
throws javax.naming.NamingException
setAutoCommitOnClose in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic java.lang.String getConnectionTesterClassName()
getConnectionTesterClassName in interface C3P0PooledDataSourceMBeanpublic void setConnectionTesterClassName(java.lang.String connectionTesterClassName)
throws java.beans.PropertyVetoException,
javax.naming.NamingException
setConnectionTesterClassName in interface C3P0PooledDataSourceMBeanjava.beans.PropertyVetoExceptionjavax.naming.NamingExceptionpublic java.lang.String getAutomaticTestTable()
getAutomaticTestTable in interface C3P0PooledDataSourceMBeanpublic void setAutomaticTestTable(java.lang.String automaticTestTable)
throws javax.naming.NamingException
setAutomaticTestTable in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic boolean isForceIgnoreUnresolvedTransactions()
isForceIgnoreUnresolvedTransactions in interface C3P0PooledDataSourceMBeanpublic void setForceIgnoreUnresolvedTransactions(boolean forceIgnoreUnresolvedTransactions)
throws javax.naming.NamingException
setForceIgnoreUnresolvedTransactions in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic int getIdleConnectionTestPeriod()
getIdleConnectionTestPeriod in interface C3P0PooledDataSourceMBeanpublic void setIdleConnectionTestPeriod(int idleConnectionTestPeriod)
throws javax.naming.NamingException
setIdleConnectionTestPeriod in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic int getInitialPoolSize()
getInitialPoolSize in interface C3P0PooledDataSourceMBeanpublic void setInitialPoolSize(int initialPoolSize)
throws javax.naming.NamingException
setInitialPoolSize in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic int getMaxIdleTime()
getMaxIdleTime in interface C3P0PooledDataSourceMBeanpublic void setMaxIdleTime(int maxIdleTime)
throws javax.naming.NamingException
setMaxIdleTime in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic int getMaxPoolSize()
getMaxPoolSize in interface C3P0PooledDataSourceMBeanpublic void setMaxPoolSize(int maxPoolSize)
throws javax.naming.NamingException
setMaxPoolSize in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic int getMaxStatements()
getMaxStatements in interface C3P0PooledDataSourceMBeanpublic void setMaxStatements(int maxStatements)
throws javax.naming.NamingException
setMaxStatements in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic int getMaxStatementsPerConnection()
getMaxStatementsPerConnection in interface C3P0PooledDataSourceMBeanpublic void setMaxStatementsPerConnection(int maxStatementsPerConnection)
throws javax.naming.NamingException
setMaxStatementsPerConnection in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic int getMinPoolSize()
getMinPoolSize in interface C3P0PooledDataSourceMBeanpublic void setMinPoolSize(int minPoolSize)
throws javax.naming.NamingException
setMinPoolSize in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic int getPropertyCycle()
getPropertyCycle in interface C3P0PooledDataSourceMBeanpublic void setPropertyCycle(int propertyCycle)
throws javax.naming.NamingException
setPropertyCycle in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic boolean isBreakAfterAcquireFailure()
isBreakAfterAcquireFailure in interface C3P0PooledDataSourceMBeanpublic void setBreakAfterAcquireFailure(boolean breakAfterAcquireFailure)
throws javax.naming.NamingException
setBreakAfterAcquireFailure in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic boolean isTestConnectionOnCheckout()
isTestConnectionOnCheckout in interface C3P0PooledDataSourceMBeanpublic void setTestConnectionOnCheckout(boolean testConnectionOnCheckout)
throws javax.naming.NamingException
setTestConnectionOnCheckout in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic boolean isTestConnectionOnCheckin()
isTestConnectionOnCheckin in interface C3P0PooledDataSourceMBeanpublic void setTestConnectionOnCheckin(boolean testConnectionOnCheckin)
throws javax.naming.NamingException
setTestConnectionOnCheckin in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic boolean isUsesTraditionalReflectiveProxies()
isUsesTraditionalReflectiveProxies in interface C3P0PooledDataSourceMBeanpublic void setUsesTraditionalReflectiveProxies(boolean usesTraditionalReflectiveProxies)
throws javax.naming.NamingException
setUsesTraditionalReflectiveProxies in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic java.lang.String getPreferredTestQuery()
getPreferredTestQuery in interface C3P0PooledDataSourceMBeanpublic void setPreferredTestQuery(java.lang.String preferredTestQuery)
throws javax.naming.NamingException
setPreferredTestQuery in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic java.lang.String getDataSourceName()
public void setDataSourceName(java.lang.String name)
throws javax.naming.NamingException
javax.naming.NamingExceptionpublic int getNumHelperThreads()
getNumHelperThreads in interface C3P0PooledDataSourceMBeanpublic void setNumHelperThreads(int numHelperThreads)
throws javax.naming.NamingException
setNumHelperThreads in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic java.lang.String getFactoryClassLocation()
getFactoryClassLocation in interface C3P0PooledDataSourceMBeanpublic void setFactoryClassLocation(java.lang.String factoryClassLocation)
throws javax.naming.NamingException
setFactoryClassLocation in interface C3P0PooledDataSourceMBeanjavax.naming.NamingExceptionpublic int getNumUserPools()
throws java.sql.SQLException
getNumUserPools in interface C3P0PooledDataSourceMBeanjava.sql.SQLExceptionpublic int getNumConnectionsDefaultUser()
throws java.sql.SQLException
getNumConnectionsDefaultUser in interface C3P0PooledDataSourceMBeanjava.sql.SQLExceptionpublic int getNumIdleConnectionsDefaultUser()
throws java.sql.SQLException
getNumIdleConnectionsDefaultUser in interface C3P0PooledDataSourceMBeanjava.sql.SQLExceptionpublic int getNumBusyConnectionsDefaultUser()
throws java.sql.SQLException
getNumBusyConnectionsDefaultUser in interface C3P0PooledDataSourceMBeanjava.sql.SQLExceptionpublic int getNumUnclosedOrphanedConnectionsDefaultUser()
throws java.sql.SQLException
getNumUnclosedOrphanedConnectionsDefaultUser in interface C3P0PooledDataSourceMBeanjava.sql.SQLExceptionpublic int getNumConnections(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
getNumConnections in interface C3P0PooledDataSourceMBeanjava.sql.SQLExceptionpublic int getNumIdleConnections(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
getNumIdleConnections in interface C3P0PooledDataSourceMBeanjava.sql.SQLExceptionpublic int getNumBusyConnections(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
getNumBusyConnections in interface C3P0PooledDataSourceMBeanjava.sql.SQLExceptionpublic int getNumUnclosedOrphanedConnections(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
getNumUnclosedOrphanedConnections in interface C3P0PooledDataSourceMBeanjava.sql.SQLExceptionpublic int getNumConnectionsAllUsers()
throws java.sql.SQLException
getNumConnectionsAllUsers in interface C3P0PooledDataSourceMBeanjava.sql.SQLExceptionpublic int getNumIdleConnectionsAllUsers()
throws java.sql.SQLException
getNumIdleConnectionsAllUsers in interface C3P0PooledDataSourceMBeanjava.sql.SQLExceptionpublic int getNumBusyConnectionsAllUsers()
throws java.sql.SQLException
getNumBusyConnectionsAllUsers in interface C3P0PooledDataSourceMBeanjava.sql.SQLExceptionpublic int getNumUnclosedOrphanedConnectionsAllUsers()
throws java.sql.SQLException
getNumUnclosedOrphanedConnectionsAllUsers in interface C3P0PooledDataSourceMBeanjava.sql.SQLExceptionpublic void softResetDefaultUser()
throws java.sql.SQLException
softResetDefaultUser in interface C3P0PooledDataSourceMBeanjava.sql.SQLExceptionpublic void softReset(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
softReset in interface C3P0PooledDataSourceMBeanjava.sql.SQLExceptionpublic void softResetAllUsers()
throws java.sql.SQLException
softResetAllUsers in interface C3P0PooledDataSourceMBeanjava.sql.SQLExceptionpublic void hardReset()
throws java.sql.SQLException
hardReset in interface C3P0PooledDataSourceMBeanjava.sql.SQLExceptionpublic void close()
throws java.sql.SQLException
close in interface C3P0PooledDataSourceMBeanjava.sql.SQLExceptionpublic void create()
throws java.lang.Exception
create in interface C3P0PooledDataSourceMBeanjava.lang.Exceptionpublic void start()
throws java.lang.Exception
start in interface C3P0PooledDataSourceMBeanjava.lang.Exceptionpublic void stop()
stop in interface C3P0PooledDataSourceMBeanpublic void destroy()
destroy in interface C3P0PooledDataSourceMBean