Package org.datanucleus.jdo.connector
Class ContainerLocalTransaction
- java.lang.Object
-
- org.datanucleus.jdo.connector.ContainerLocalTransaction
-
- All Implemented Interfaces:
javax.resource.spi.LocalTransaction
public class ContainerLocalTransaction extends Object implements javax.resource.spi.LocalTransaction
Container-demarcated local transaction. Starts the LocalTransaction of the Resource. The JCA container uses this interface to control the lifecycle of local transactions.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin()Method to start the Transactionvoidcommit()Method to commit the TransactionvoidinternalBegin()Method to start the TransactionvoidinternalCommit()Method to commit the TransactionvoidinternalRollback()Method to rollback the Transactionvoidrollback()Method to rollback the Transaction
-
-
-
Method Detail
-
begin
public void begin() throws javax.resource.ResourceExceptionMethod to start the Transaction- Specified by:
beginin interfacejavax.resource.spi.LocalTransaction- Throws:
javax.resource.ResourceException- if error occurs
-
commit
public void commit() throws javax.resource.ResourceExceptionMethod to commit the Transaction- Specified by:
commitin interfacejavax.resource.spi.LocalTransaction- Throws:
javax.resource.ResourceException- if error occurs
-
rollback
public void rollback() throws javax.resource.ResourceExceptionMethod to rollback the Transaction- Specified by:
rollbackin interfacejavax.resource.spi.LocalTransaction- Throws:
javax.resource.ResourceException- if error occurs
-
internalRollback
public void internalRollback()
Method to rollback the Transaction
-
internalBegin
public void internalBegin()
Method to start the Transaction
-
internalCommit
public void internalCommit()
Method to commit the Transaction
-
-