public class ConnectionProxy extends java.lang.Object implements java.lang.reflect.InvocationHandler, ReusableConnection, ConnectionInfoProvider, ResourceResetPoint.ResourceResetPointListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
ConnectionProxy.CloseListener |
| Modifier and Type | Field and Description |
|---|---|
static int |
globalQueryTimeout |
| Modifier and Type | Method and Description |
|---|---|
void |
addStatementToCache(java.lang.String key,
AutoCloseableStatement stm) |
static void |
cancelRunningResultSet(java.lang.Thread owner) |
static void |
cancelRunningStatement(java.lang.Thread owner) |
void |
closeAllResetPoints() |
void |
closed(ResourceResetPoint r) |
static java.lang.String |
dumpConnectionUsage() |
static java.lang.String |
dumpTooManyConnections() |
java.lang.String |
getDsName() |
AutoCloseableStatement |
getStatementFromCache(java.lang.String key) |
java.lang.String |
getUserName() |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
boolean |
isMySQL() |
boolean |
isOracle() |
boolean |
isSqlServer() |
ResourceResetPoint |
markResetPoint() |
void |
reset()
Deprecated.
|
static java.sql.Connection |
wrapConnection(java.sql.Connection c) |
static java.sql.Connection |
wrapConnection(java.sql.Connection c,
ConnectionProxy.CloseListener closeListener,
java.lang.String dsJndiName) |
public static java.sql.Connection wrapConnection(java.sql.Connection c)
throws java.lang.Exception
java.lang.Exceptionpublic static void cancelRunningStatement(java.lang.Thread owner)
public static void cancelRunningResultSet(java.lang.Thread owner)
public static java.sql.Connection wrapConnection(java.sql.Connection c,
ConnectionProxy.CloseListener closeListener,
java.lang.String dsJndiName)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwablepublic ResourceResetPoint markResetPoint()
markResetPoint in interface ReusableConnection@Deprecated public void reset()
reset in interface ReusableConnectionpublic void addStatementToCache(java.lang.String key,
AutoCloseableStatement stm)
addStatementToCache in interface ReusableConnectionpublic AutoCloseableStatement getStatementFromCache(java.lang.String key)
getStatementFromCache in interface ReusableConnectionpublic static java.lang.String dumpConnectionUsage()
public static java.lang.String dumpTooManyConnections()
public void closeAllResetPoints()
public boolean isSqlServer()
isSqlServer in interface ConnectionInfoProviderpublic boolean isOracle()
isOracle in interface ConnectionInfoProviderpublic boolean isMySQL()
public java.lang.String getDsName()
getDsName in interface ConnectionInfoProviderpublic void closed(ResourceResetPoint r)
closed in interface ResourceResetPoint.ResourceResetPointListenerpublic java.lang.String getUserName()
getUserName in interface ConnectionInfoProvider