Class LocalManagedConnection
- java.lang.Object
-
- org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection
-
- org.jboss.jca.adapters.jdbc.local.LocalManagedConnection
-
- All Implemented Interfaces:
javax.resource.spi.LocalTransaction,javax.resource.spi.ManagedConnection,org.jboss.jca.core.connectionmanager.pool.mcp.NotifyingManagedConnection,ConnectableResource
public class LocalManagedConnection extends BaseWrapperManagedConnection implements javax.resource.spi.LocalTransaction
LocalManagedConnection- Version:
- $Revision: 71788 $
- Author:
- David Jencks, Adrian Brock
-
-
Field Summary
-
Fields inherited from class org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection
bundle, con, destroyed, ignoreInManagedAutoCommitCalls, inLocalTransaction, inManagedTransaction, jdbcAutoCommit, jdbcReadOnly, jdbcTransactionIsolation, mcf, metadata, props, setAutoCommitOnCleanup, stateLock, underlyingAutoCommit, underlyingReadOnly
-
-
Constructor Summary
Constructors Constructor Description LocalManagedConnection(LocalManagedConnectionFactory mcf, Connection con, Properties props, int transactionIsolation, int psCacheSize)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin()voidcommit()javax.resource.spi.LocalTransactiongetLocalTransaction()XAResourcegetXAResource()booleanisXA()Returns true if the underlying connection is handled by an XA resource managervoidrollback()-
Methods inherited from class org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection
addConnectionEventListener, associateConnection, broadcastConnectionError, checkException, checkState, cleanup, destroy, getBeginRequestNotify, getConnection, getConnection, getEndRequestNotify, getLog, getLogWriter, getMetaData, getProperties, lock, notifyRequestBegin, notifyRequestEnd, removeConnectionEventListener, setBeginRequestNotify, setConnectableResourceListener, setEndRequestNotify, setLogWriter, tryLock, unlock
-
-
-
-
Constructor Detail
-
LocalManagedConnection
public LocalManagedConnection(LocalManagedConnectionFactory mcf, Connection con, Properties props, int transactionIsolation, int psCacheSize) throws SQLException
Constructor- Parameters:
mcf- The managed connection factorycon- The connectionprops- The propertiestransactionIsolation- The transaction isolationpsCacheSize- The prepared statement cache size- Throws:
SQLException- Thrown if an error occurs
-
-
Method Detail
-
getLocalTransaction
public javax.resource.spi.LocalTransaction getLocalTransaction() throws javax.resource.ResourceException- Specified by:
getLocalTransactionin interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException
-
getXAResource
public XAResource getXAResource() throws javax.resource.ResourceException
- Specified by:
getXAResourcein interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException
-
commit
public void commit() throws javax.resource.ResourceException- Specified by:
commitin interfacejavax.resource.spi.LocalTransaction- Throws:
javax.resource.ResourceException
-
rollback
public void rollback() throws javax.resource.ResourceException- Specified by:
rollbackin interfacejavax.resource.spi.LocalTransaction- Throws:
javax.resource.ResourceException
-
begin
public void begin() throws javax.resource.ResourceException- Specified by:
beginin interfacejavax.resource.spi.LocalTransaction- Throws:
javax.resource.ResourceException
-
isXA
public boolean isXA()
Returns true if the underlying connection is handled by an XA resource manager- Specified by:
isXAin classBaseWrapperManagedConnection- Returns:
- The value
-
-