public class LocalManagedConnection extends BaseWrapperManagedConnection implements javax.resource.spi.LocalTransaction
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, checkValid, cleanup, destroy, getConnection, getConnection, getLog, getLogWriter, getMetaData, getProperties, lock, removeConnectionEventListener, setLogWriter, tryLock, unlock
public 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.ManagedConnection
javax.resource.ResourceException
public javax.transaction.xa.XAResource getXAResource() throws javax.resource.ResourceException
getXAResource
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
public void commit() throws javax.resource.ResourceException
commit
in interface javax.resource.spi.LocalTransaction
javax.resource.ResourceException
public void rollback() throws javax.resource.ResourceException
rollback
in interface javax.resource.spi.LocalTransaction
javax.resource.ResourceException
public void begin() throws javax.resource.ResourceException
begin
in interface javax.resource.spi.LocalTransaction
javax.resource.ResourceException
public boolean isXA()
isXA
in class BaseWrapperManagedConnection
Copyright © 2013 IronJacamar (http://www.ironjacamar.org)