public class ManagedConnection
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
| Modifier and Type | Field and Description |
|---|---|
protected java.sql.Connection |
delegate |
protected javax.sql.XAConnection |
xaConnection |
protected javax.transaction.xa.XAResource |
xaResource |
| Constructor and Description |
|---|
ManagedConnection(javax.sql.CommonDataSource ds,
TransactionManager txMgr,
TransactionSynchronizationRegistry txRegistry,
java.lang.String user,
java.lang.String password) |
| Modifier and Type | Method and Description |
|---|---|
javax.transaction.xa.XAResource |
getXAResource() |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
static boolean |
isUnderTransaction(int status) |
protected java.lang.Object |
newConnection() |
protected void |
setAutoCommit(boolean value) |
java.lang.String |
toString() |
protected javax.transaction.xa.XAResource xaResource
protected java.sql.Connection delegate
protected javax.sql.XAConnection xaConnection
public ManagedConnection(javax.sql.CommonDataSource ds,
TransactionManager txMgr,
TransactionSynchronizationRegistry txRegistry,
java.lang.String user,
java.lang.String password)
public javax.transaction.xa.XAResource getXAResource()
throws java.sql.SQLException
java.sql.SQLExceptionpublic 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.Throwableprotected java.lang.Object newConnection()
throws java.sql.SQLException
java.sql.SQLExceptionprotected void setAutoCommit(boolean value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static boolean isUnderTransaction(int status)
public java.lang.String toString()
toString in class java.lang.Object