de.uplanet.server.transaction
Interface ITransactionResource


@Scriptable
public interface ITransactionResource

Version:
$Revision: 74042 $

Method Summary
 void cancelTransaction()
          Resets the transaction.
 void commit()
          Two calls of the commit must not do the same.
 int getCommitPriority()
           
 java.lang.Exception getLastError()
           
 java.lang.Object getManagedObject()
           
 boolean requestCommit()
           
 void rollback()
          Two calls of the rollback must not do the same.
 

Method Detail

getCommitPriority

int getCommitPriority()

requestCommit

boolean requestCommit()
                      throws java.lang.Exception
Throws:
java.lang.Exception

commit

void commit()
            throws java.lang.Exception
Two calls of the commit must not do the same. (Clear transactions operations)

Throws:
java.lang.Exception

rollback

void rollback()
              throws java.lang.Exception
Two calls of the rollback must not do the same. (Clear transactions operations)

Throws:
java.lang.Exception

getManagedObject

java.lang.Object getManagedObject()

getLastError

java.lang.Exception getLastError()

cancelTransaction

void cancelTransaction()
                       throws java.lang.Exception
Resets the transaction.

After that call commit and rollback should do nothing.

Only relevant on two phase commits

.

Throws:
java.lang.Exception


Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.