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