Package com.mchange.v2.c3p0.util
Class TestUtils
java.lang.Object
com.mchange.v2.c3p0.util.TestUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isPhysicalConnectionForProxy
(Connection physicalConnection, C3P0ProxyConnection proxy) static int
static boolean
In general, if this method returns true for two distinct C3P0ProxyConnections, it indicates a c3p0 bug.static DataSource
-
Method Details
-
samePhysicalConnection
public static boolean samePhysicalConnection(C3P0ProxyConnection con1, C3P0ProxyConnection con2) throws SQLException In general, if this method returns true for two distinct C3P0ProxyConnections, it indicates a c3p0 bug. Once a proxy Connection is close()ed, it should not permit any sort of operation. Prior to Connection close(), there should be at most one valid proxy Connection associated with a given physical Connection.- Throws:
SQLException
-
isPhysicalConnectionForProxy
public static boolean isPhysicalConnectionForProxy(Connection physicalConnection, C3P0ProxyConnection proxy) throws SQLException - Throws:
SQLException
-
physicalConnectionIdentityHashCode
- Throws:
SQLException
-
unreliableCommitDataSource
- Throws:
Exception
-