| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ConnectionTester
Define your own Connection tester if you want to override c3p0's default behavior for testing the validity of Connections and responding to Connection errors encountered.
Recommended: If you'd like your ConnectionTester
  to support the user-configured preferredTestQuery
  parameter, please implement UnifiedConnectionTester.
  
ConnectionTesters should be Serializable, immutable, and must have public, no-arg constructors.
UnifiedConnectionTester, 
AbstractConnectionTester| Field Summary | |
|---|---|
| static int | CONNECTION_IS_INVALID | 
| static int | CONNECTION_IS_OKAY | 
| static int | DATABASE_IS_INVALID | 
| 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) | 
| Field Detail | 
|---|
static final int CONNECTION_IS_OKAY
static final int CONNECTION_IS_INVALID
static final int DATABASE_IS_INVALID
| Method Detail | 
|---|
int activeCheckConnection(java.sql.Connection c)
int statusOnException(java.sql.Connection c,
                      java.lang.Throwable t)
boolean equals(java.lang.Object o)
equals in class java.lang.Objectint hashCode()
hashCode in class java.lang.Object| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||