Package de.hybris.platform.jdbcwrapper
Class ConnectionErrorCheckingJDBCConnectionFactory
java.lang.Object
de.hybris.platform.jdbcwrapper.JDBCConnectionFactory
de.hybris.platform.jdbcwrapper.ConnectionErrorCheckingJDBCConnectionFactory
- All Implemented Interfaces:
org.apache.commons.pool2.PooledObjectFactory<Connection>
- Direct Known Subclasses:
JUnitJDBCConnectionFactory
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionErrorCheckingJDBCConnectionFactory(HybrisDataSource dataSource, ConnectionStatus connectionStatus) -
Method Summary
Modifier and TypeMethodDescriptionprotected Connectionprotected booleanmustValidate(Object obj) booleanvalidateObject(org.apache.commons.pool2.PooledObject<Connection> pooledConnection) Methods inherited from class de.hybris.platform.jdbcwrapper.JDBCConnectionFactory
activateObject, createRawSQLConnection, destroyObject, disableOracleStatementCaching, enableOracleStatementCaching, getJdbcSuspendSupport, getMaxPhysicalOpen, getNumPhysicalOpen, getNumReadOnlyOpen, getValidationQuery, isOracleStatementCachingEnabled, makeObject, passivateObject, resetOracleStatementCaching, resetStats, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.commons.pool2.PooledObjectFactory
destroyObject
-
Constructor Details
-
ConnectionErrorCheckingJDBCConnectionFactory
public ConnectionErrorCheckingJDBCConnectionFactory(HybrisDataSource dataSource, ConnectionStatus connectionStatus)
-
-
Method Details
-
createConnection
- Overrides:
createConnectionin classJDBCConnectionFactory- Throws:
SQLException
-
mustValidate
- Overrides:
mustValidatein classJDBCConnectionFactory
-
validateObject
- Specified by:
validateObjectin interfaceorg.apache.commons.pool2.PooledObjectFactory<Connection>- Overrides:
validateObjectin classJDBCConnectionFactory
-