Package org.cyclos.db

Class ConnectionTester

  • All Implemented Interfaces:
    com.mchange.v2.c3p0.ConnectionTester, com.mchange.v2.c3p0.FullQueryConnectionTester, com.mchange.v2.c3p0.QueryConnectionTester, com.mchange.v2.c3p0.UnifiedConnectionTester, Serializable

    public class ConnectionTester
    extends com.mchange.v2.c3p0.AbstractConnectionTester
    A c3p0 connection tester which allows us to handle zero results as connection error
    See Also:
    Serialized Form
    • Constructor Detail

      • ConnectionTester

        public ConnectionTester()
    • Method Detail

      • activeCheckConnection

        public int activeCheckConnection​(Connection c,
                                         String preferredTestQuery,
                                         Throwable[] rootCauseOutParamHolder)
        Specified by:
        activeCheckConnection in interface com.mchange.v2.c3p0.UnifiedConnectionTester
        Specified by:
        activeCheckConnection in class com.mchange.v2.c3p0.AbstractConnectionTester
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.mchange.v2.c3p0.ConnectionTester
        Specified by:
        equals in interface com.mchange.v2.c3p0.UnifiedConnectionTester
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.mchange.v2.c3p0.ConnectionTester
        Specified by:
        hashCode in interface com.mchange.v2.c3p0.UnifiedConnectionTester
        Overrides:
        hashCode in class Object
      • statusOnException

        public int statusOnException​(Connection c,
                                     Throwable t,
                                     String preferredTestQuery,
                                     Throwable[] rootCauseOutParamHolder)
        Specified by:
        statusOnException in interface com.mchange.v2.c3p0.UnifiedConnectionTester
        Specified by:
        statusOnException in class com.mchange.v2.c3p0.AbstractConnectionTester