Package com.sun.gjc.spi
Class LocalTransactionImpl
- java.lang.Object
-
- com.sun.gjc.spi.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
-
-
Constructor Summary
Constructors Constructor Description LocalTransactionImpl(ManagedConnectionImpl mc)
Constructor forLocalTransactionImpl
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
begin()
Begin a local transaction.void
commit()
Commit a local transaction.void
rollback()
Rollback a local transaction.
-
-
-
Field Detail
-
_logger
protected static final Logger _logger
-
-
Constructor Detail
-
LocalTransactionImpl
public LocalTransactionImpl(ManagedConnectionImpl mc)
Constructor forLocalTransactionImpl
.- Parameters:
mc
-ManagedConnection
that returns thisLocalTransactionImpl
object as a result ofgetLocalTransaction
-
-
Method Detail
-
begin
public void begin() throws jakarta.resource.ResourceException
Begin a local transaction.- Specified by:
begin
in interfacejakarta.resource.spi.LocalTransaction
- Throws:
jakarta.resource.spi.LocalTransactionException
- if there is an error in changing the autocommit mode of the physical connectionjakarta.resource.ResourceException
-
commit
public void commit() throws jakarta.resource.ResourceException
Commit a local transaction.- Specified by:
commit
in interfacejakarta.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 transactionjakarta.resource.ResourceException
-
rollback
public void rollback() throws jakarta.resource.ResourceException
Rollback a local transaction.- Specified by:
rollback
in interfacejakarta.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 transactionjakarta.resource.ResourceException
-
-