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
  • Constructor Details

    • LocalManagedConnection

      public LocalManagedConnection(LocalManagedConnectionFactory mcf, Connection con, Properties props, int transactionIsolation, int psCacheSize) throws SQLException
      Constructor
      Parameters:
      mcf - The managed connection factory
      con - The connection
      props - The properties
      transactionIsolation - The transaction isolation
      psCacheSize - The prepared statement cache size
      Throws:
      SQLException - Thrown if an error occurs
  • Method Details

    • getLocalTransaction

      public javax.resource.spi.LocalTransaction getLocalTransaction() throws javax.resource.ResourceException
      Specified by:
      getLocalTransaction in interface javax.resource.spi.ManagedConnection
      Throws:
      javax.resource.ResourceException
    • getXAResource

      public XAResource getXAResource() throws javax.resource.ResourceException
      Specified by:
      getXAResource in interface javax.resource.spi.ManagedConnection
      Throws:
      javax.resource.ResourceException
    • commit

      public void commit() throws javax.resource.ResourceException
      Specified by:
      commit in interface javax.resource.spi.LocalTransaction
      Throws:
      javax.resource.ResourceException
    • rollback

      public void rollback() throws javax.resource.ResourceException
      Specified by:
      rollback in interface javax.resource.spi.LocalTransaction
      Throws:
      javax.resource.ResourceException
    • begin

      public void begin() throws javax.resource.ResourceException
      Specified by:
      begin in interface javax.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:
      isXA in class BaseWrapperManagedConnection
      Returns:
      The value