Package de.hybris.platform.jdbcwrapper
Class JUnitJDBCConnectionFactory
java.lang.Object
de.hybris.platform.jdbcwrapper.JDBCConnectionFactory
de.hybris.platform.jdbcwrapper.ConnectionErrorCheckingJDBCConnectionFactory
de.hybris.platform.jdbcwrapper.JUnitJDBCConnectionFactory
- All Implemented Interfaces:
org.apache.commons.pool2.PooledObjectFactory<Connection>
-
Constructor Summary
ConstructorsConstructorDescriptionJUnitJDBCConnectionFactory(HybrisDataSource dataSource, ConnectionStatus connectionStatus) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidsetAllConnectionsFail(boolean allFail) booleanvalidateObject(org.apache.commons.pool2.PooledObject<Connection> pooledConnection) Methods inherited from class de.hybris.platform.jdbcwrapper.ConnectionErrorCheckingJDBCConnectionFactory
createConnection, mustValidateMethods 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
-
JUnitJDBCConnectionFactory
-
-
Method Details
-
validateObject
- Specified by:
validateObjectin interfaceorg.apache.commons.pool2.PooledObjectFactory<Connection>- Overrides:
validateObjectin classConnectionErrorCheckingJDBCConnectionFactory
-
setAllConnectionsFail
public void setAllConnectionsFail(boolean allFail) -
addFailingConnection
-
removeFailingConnection
-
removeAllFailingConnections
public void removeAllFailingConnections()
-