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