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
LocalTransactionImplimplementation 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 voidbegin()Begin a local transaction.voidcommit()Commit a local transaction.voidrollback()Rollback a local transaction.
-
-
-
Field Detail
-
_logger
protected static final Logger _logger
-
-
Constructor Detail
-
LocalTransactionImpl
public LocalTransactionImpl(ManagedConnectionImpl mc)
Constructor forLocalTransactionImpl.- Parameters:
mc-ManagedConnectionthat returns thisLocalTransactionImplobject as a result ofgetLocalTransaction
-
-
Method Detail
-
begin
public void begin() throws jakarta.resource.ResourceExceptionBegin a local transaction.- Specified by:
beginin 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.ResourceExceptionCommit a local transaction.- Specified by:
commitin 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.ResourceExceptionRollback a local transaction.- Specified by:
rollbackin 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
-
-