Package de.uplanet.server.transaction
Interface ITransactionResource
-
@Scriptable public interface ITransactionResource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cancelTransaction()
Resets the transaction.void
commit()
Two calls of the commit must not do the same.int
getCommitPriority()
The commit and rollback priority order.Exception
getLastError()
Object
getManagedObject()
boolean
requestCommit()
void
rollback()
Two calls of the rollback must not do the same.
-
-
-
Method Detail
-
getCommitPriority
int getCommitPriority()
The commit and rollback priority order. A transaction resource with a higher value will committed/rolled back first.- Returns:
- The commit/rollback priority order.
-
commit
void commit() throws Exception
Two calls of the commit must not do the same. (Clear transactions operations)- Throws:
Exception
-
rollback
void rollback() throws Exception
Two calls of the rollback must not do the same. (Clear transactions operations)- Throws:
Exception
-
getManagedObject
Object getManagedObject()
-
getLastError
Exception getLastError()
-
-