org.datanucleus.jdo.connector
Class ContainerLocalTransaction

java.lang.Object
  extended by org.datanucleus.jdo.connector.ContainerLocalTransaction
All Implemented Interfaces:
javax.resource.spi.LocalTransaction

public class ContainerLocalTransaction
extends java.lang.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
 void begin()
          Method to start the Transaction
 void commit()
          Method to commit the Transaction
 void internalBegin()
          Method to start the Transaction
 void internalCommit()
          Method to commit the Transaction
 void internalRollback()
          Method to rollback the Transaction
 void rollback()
          Method to rollback the Transaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

begin

public void begin()
           throws javax.resource.ResourceException
Method to start the Transaction

Specified by:
begin in interface javax.resource.spi.LocalTransaction
Throws:
javax.resource.ResourceException -

commit

public void commit()
            throws javax.resource.ResourceException
Method to commit the Transaction

Specified by:
commit in interface javax.resource.spi.LocalTransaction
Throws:
javax.resource.ResourceException -

rollback

public void rollback()
              throws javax.resource.ResourceException
Method to rollback the Transaction

Specified by:
rollback in interface javax.resource.spi.LocalTransaction
Throws:
javax.resource.ResourceException -

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



Copyright © 2011. All Rights Reserved.