
public class LocalManagedConnection extends BaseWrapperManagedConnection implements javax.resource.spi.LocalTransaction
bundle, con, destroyed, ignoreInManagedAutoCommitCalls, inLocalTransaction, inManagedTransaction, jdbcAutoCommit, jdbcReadOnly, jdbcTransactionIsolation, mcf, metadata, props, stateLock, underlyingAutoCommit, underlyingReadOnly| Constructor and Description |
|---|
LocalManagedConnection(LocalManagedConnectionFactory mcf,
java.sql.Connection con,
java.util.Properties props,
int transactionIsolation,
int psCacheSize)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
javax.resource.spi.LocalTransaction |
getLocalTransaction() |
javax.transaction.xa.XAResource |
getXAResource() |
boolean |
isXA()
Returns true if the underlying connection is handled by an XA resource manager
|
void |
rollback() |
addConnectionEventListener, associateConnection, broadcastConnectionError, checkException, checkState, cleanup, destroy, getConnection, getConnection, getLog, getLogWriter, getMetaData, getProperties, lock, removeConnectionEventListener, setConnectableResourceListener, setLogWriter, tryLock, unlockpublic LocalManagedConnection(LocalManagedConnectionFactory mcf, java.sql.Connection con, java.util.Properties props, int transactionIsolation, int psCacheSize) throws java.sql.SQLException
mcf - The managed connection factorycon - The connectionprops - The propertiestransactionIsolation - The transaction isolationpsCacheSize - The prepared statement cache sizejava.sql.SQLException - Thrown if an error occurspublic javax.resource.spi.LocalTransaction getLocalTransaction()
throws javax.resource.ResourceException
getLocalTransaction in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic javax.transaction.xa.XAResource getXAResource()
throws javax.resource.ResourceException
getXAResource in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionpublic void commit()
throws javax.resource.ResourceException
commit in interface javax.resource.spi.LocalTransactionjavax.resource.ResourceExceptionpublic void rollback()
throws javax.resource.ResourceException
rollback in interface javax.resource.spi.LocalTransactionjavax.resource.ResourceExceptionpublic void begin()
throws javax.resource.ResourceException
begin in interface javax.resource.spi.LocalTransactionjavax.resource.ResourceExceptionpublic boolean isXA()
isXA in class BaseWrapperManagedConnectionCopyright © 2014 IronJacamar (http://www.ironjacamar.org)