Package de.uplanet.server.transaction
Interface ITransactionResource
-
@Scriptable public interface ITransactionResource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancelTransaction()Resets the transaction.voidcommit()Two calls of the commit must not do the same.intgetCommitPriority()The commit and rollback priority order.ExceptiongetLastError()ObjectgetManagedObject()booleanrequestCommit()voidrollback()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 ExceptionTwo calls of the commit must not do the same. (Clear transactions operations)- Throws:
Exception
-
rollback
void rollback() throws ExceptionTwo calls of the rollback must not do the same. (Clear transactions operations)- Throws:
Exception
-
getManagedObject
Object getManagedObject()
-
getLastError
Exception getLastError()
-
-