public final class TestUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isPhysicalConnectionForProxy(java.sql.Connection physicalConnection,
C3P0ProxyConnection proxy) |
static int |
physicalConnectionIdentityHashCode(C3P0ProxyConnection conn) |
static boolean |
samePhysicalConnection(C3P0ProxyConnection con1,
C3P0ProxyConnection con2)
In general, if this method returns true for two distinct C3P0ProxyConnections, it indicates a c3p0 bug.
|
static javax.sql.DataSource |
unreliableCommitDataSource(javax.sql.DataSource ds) |
public static boolean samePhysicalConnection(C3P0ProxyConnection con1, C3P0ProxyConnection con2) throws java.sql.SQLException
java.sql.SQLException
public static boolean isPhysicalConnectionForProxy(java.sql.Connection physicalConnection, C3P0ProxyConnection proxy) throws java.sql.SQLException
java.sql.SQLException
public static int physicalConnectionIdentityHashCode(C3P0ProxyConnection conn) throws java.sql.SQLException
java.sql.SQLException
public static javax.sql.DataSource unreliableCommitDataSource(javax.sql.DataSource ds) throws java.lang.Exception
java.lang.Exception