@ComponentProfile(summary="Connect to a database using a JDBC driver; connection pooling handled via C3P0", tag="connections,jdbc") public class AdvancedJdbcPooledConnection extends JdbcPooledConnectionImpl
DatabaseConnection
instance that provides connection pooling via c3p0.PooledConnectionProperties
connectionPool
log
Constructor and Description |
---|
AdvancedJdbcPooledConnection() |
Modifier and Type | Method and Description |
---|---|
protected C3P0PooledDataSource |
createPool() |
int |
currentBusyConnectionCount() |
int |
currentConnectionCount() |
int |
currentIdleConnectionCount() |
boolean |
equals(java.lang.Object ajpc)
Force implementations to over-ride equals with a semantic implementation.
|
KeyValuePairSet |
getConnectionPoolProperties() |
int |
hashCode()
Force implementations to over-ride hashcode.
|
void |
setConnectionPoolProperties(KeyValuePairSet kvps) |
asDataSource, closeDatabaseConnection, getConnectionName, getConnectUrl, initialiseDatabaseConnection, makeConnection, setConnectUrl, startDatabaseConnection, stopDatabaseConnection
alwaysValidateConnection, autoCommit, checkInternalState, closeConnection, connect, connectionProperties, debugMode, getAlwaysValidateConnection, getAutoCommit, getConnectionProperties, getDebugMode, getDriverImp, getPassword, getTestStatement, getUsername, initConnection, prepareConnection, setAlwaysValidateConnection, setAutoCommit, setConnectionProperties, setDebugMode, setDriverImp, setPassword, setTestStatement, setUsername, startConnection, stopConnection
connectionAttempts, connectionRetryInterval, createLoggingStatement, getConnectionAttempts, getConnectionRetryInterval, logWarning, setConnectionAttempts, setConnectionRetryInterval
addExceptionListener, addMessageConsumer, addMessageProducer, changeState, cloneForTesting, close, connectionErrorHandler, getConnectionErrorHandler, getUniqueId, getWorkersFirstOnShutdown, init, prepare, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, retrieveConnection, retrieveExceptionListeners, retrieveMessageConsumers, retrieveMessageProducers, setConnectionErrorHandler, setUniqueId, setWorkersFirstOnShutdown, start, stop, workersFirstOnShutdown
protected C3P0PooledDataSource createPool() throws java.lang.Exception
createPool
in class JdbcPooledConnectionImpl
java.lang.Exception
public boolean equals(java.lang.Object ajpc)
DatabaseConnection
Force implementations to over-ride equals with a semantic implementation.
equals
in class DatabaseConnection
Object.equals(java.lang.Object)
public int hashCode()
DatabaseConnection
Force implementations to over-ride hashcode.
hashCode
in class DatabaseConnection
Object.hashCode()
public KeyValuePairSet getConnectionPoolProperties()
public void setConnectionPoolProperties(KeyValuePairSet kvps)
public int currentBusyConnectionCount() throws java.sql.SQLException
java.sql.SQLException
public int currentConnectionCount() throws java.sql.SQLException
java.sql.SQLException
public int currentIdleConnectionCount() throws java.sql.SQLException
java.sql.SQLException