Class LocalTransactionImpl

  • All Implemented Interfaces:
    jakarta.resource.spi.LocalTransaction

    public class LocalTransactionImpl
    extends Object
    implements jakarta.resource.spi.LocalTransaction
    LocalTransactionImpl implementation for Generic JDBC Connector.
    Version:
    1.0, 02/08/03
    Author:
    Evani Sai Surya Kiran
    • Field Detail

      • _logger

        protected static final Logger _logger
    • Constructor Detail

      • LocalTransactionImpl

        public LocalTransactionImpl​(ManagedConnectionImpl mc)
        Constructor for LocalTransactionImpl.
        Parameters:
        mc - ManagedConnection that returns this LocalTransactionImpl object as a result of getLocalTransaction
    • Method Detail

      • begin

        public void begin()
                   throws jakarta.resource.ResourceException
        Begin a local transaction.
        Specified by:
        begin in interface jakarta.resource.spi.LocalTransaction
        Throws:
        jakarta.resource.spi.LocalTransactionException - if there is an error in changing the autocommit mode of the physical connection
        jakarta.resource.ResourceException
      • commit

        public void commit()
                    throws jakarta.resource.ResourceException
        Commit a local transaction.
        Specified by:
        commit in interface jakarta.resource.spi.LocalTransaction
        Throws:
        jakarta.resource.spi.LocalTransactionException - if there is an error in changing the autocommit mode of the physical connection or committing the transaction
        jakarta.resource.ResourceException
      • rollback

        public void rollback()
                      throws jakarta.resource.ResourceException
        Rollback a local transaction.
        Specified by:
        rollback in interface jakarta.resource.spi.LocalTransaction
        Throws:
        jakarta.resource.spi.LocalTransactionException - if there is an error in changing the autocommit mode of the physical connection or rolling back the transaction
        jakarta.resource.ResourceException