1 22 23 24 package com.mchange.v2.c3p0; 25 26 import java.sql.Connection ; 27 28 51 public abstract class AbstractConnectionTester implements UnifiedConnectionTester 52 { 53 57 public abstract int activeCheckConnection(Connection c, String preferredTestQuery, Throwable [] rootCauseOutParamHolder); 58 59 63 public abstract int statusOnException(Connection c, Throwable t, String preferredTestQuery, Throwable [] rootCauseOutParamHolder); 64 65 public int activeCheckConnection(Connection c) 67 { return activeCheckConnection( c, null, null); } 68 69 public int activeCheckConnection(Connection c, Throwable [] rootCauseOutParamHolder) 70 { return activeCheckConnection( c, null, rootCauseOutParamHolder); } 71 72 public int activeCheckConnection(Connection c, String preferredTestQuery) 73 { return activeCheckConnection( c, preferredTestQuery, null); } 74 75 public int statusOnException(Connection c, Throwable t) 76 { return statusOnException( c, t, null, null); } 77 78 public int statusOnException(Connection c, Throwable t, Throwable [] rootCauseOutParamHolder) 79 { return statusOnException( c, t, null, rootCauseOutParamHolder); } 80 81 public int statusOnException(Connection c, Throwable t, String preferredTestQuery) 82 { return statusOnException( c, t, preferredTestQuery, null); } 83 } 84 | Popular Tags |