Class JUnitJDBCConnectionFactory

All Implemented Interfaces:
org.apache.commons.pool2.PooledObjectFactory<Connection>

public class JUnitJDBCConnectionFactory extends ConnectionErrorCheckingJDBCConnectionFactory
  • Constructor Details

  • Method Details

    • validateObject

      public boolean validateObject(org.apache.commons.pool2.PooledObject<Connection> pooledConnection)
      Specified by:
      validateObject in interface org.apache.commons.pool2.PooledObjectFactory<Connection>
      Overrides:
      validateObject in class ConnectionErrorCheckingJDBCConnectionFactory
    • setAllConnectionsFail

      public void setAllConnectionsFail(boolean allFail)
    • addFailingConnection

      public void addFailingConnection(Connection con)
    • removeFailingConnection

      public void removeFailingConnection(Connection con)
    • removeAllFailingConnections

      public void removeAllFailingConnections()