com.mchange.v2.c3p0
Interface ConnectionTester
- All Superinterfaces:
- java.io.Serializable
- public interface ConnectionTester
- extends java.io.Serializable
ConnectionTesters should be Serializable, immutable,
and must have public, no-arg constructors
Method Summary |
int |
activeCheckConnection(java.sql.Connection c)
|
boolean |
equals(java.lang.Object o)
Multiple testers that are of the same
class and use the same criteria for determining fatality
should test as equals(). |
int |
hashCode()
keep consistent with equals() |
int |
statusOnException(java.sql.Connection c,
java.lang.Throwable t)
|
CONNECTION_IS_OKAY
public static final int CONNECTION_IS_OKAY
- See Also:
- Constant Field Values
CONNECTION_IS_INVALID
public static final int CONNECTION_IS_INVALID
- See Also:
- Constant Field Values
DATABASE_IS_INVALID
public static final int DATABASE_IS_INVALID
- See Also:
- Constant Field Values
activeCheckConnection
public int activeCheckConnection(java.sql.Connection c)
statusOnException
public int statusOnException(java.sql.Connection c,
java.lang.Throwable t)
equals
public boolean equals(java.lang.Object o)
- Multiple testers that are of the same
class and use the same criteria for determining fatality
should test as equals().
hashCode
public int hashCode()
- keep consistent with equals()