1 22 23 24 package com.mchange.v2.c3p0; 25 26 import java.sql.Connection ; 27 28 51 public interface UnifiedConnectionTester extends FullQueryConnectionTester 52 { 53 public final static int CONNECTION_IS_OKAY = ConnectionTester.CONNECTION_IS_OKAY; 54 public final static int CONNECTION_IS_INVALID = ConnectionTester.CONNECTION_IS_INVALID; 55 public final static int DATABASE_IS_INVALID = ConnectionTester.DATABASE_IS_INVALID; 56 57 public int activeCheckConnection(Connection c); 58 public int activeCheckConnection(Connection c, Throwable [] rootCauseOutParamHolder); 59 public int activeCheckConnection(Connection c, String preferredTestQuery); 60 public int activeCheckConnection(Connection c, String preferredTestQuery, Throwable [] rootCauseOutParamHolder); 61 62 public int statusOnException(Connection c, Throwable t); 63 public int statusOnException(Connection c, Throwable t, Throwable [] rootCauseOutParamHolder); 64 public int statusOnException(Connection c, Throwable t, String preferredTestQuery); 65 public int statusOnException(Connection c, Throwable t, String preferredTestQuery, Throwable [] rootCauseOutParamHolder); 66 67 public boolean equals(Object o); 68 public int hashCode(); 69 } 70 | Popular Tags |