public interface EntityTransaction
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
Start a resource transaction.
|
void |
commit()
Commit the current resource transaction, writing any unflushed changes to the database.
|
boolean |
getRollbackOnly()
Determine whether the current resource transaction has been marked for rollback.
|
boolean |
isActive()
Indicate whether a resource transaction is in progress.
|
void |
rollback()
Roll back the current resource transaction.
|
void |
setRollbackOnly()
Mark the current resource transaction so that the only possible outcome of the transaction is for the transaction to be rolled back.
|
void begin()
IllegalStateException - if isActive() is truevoid commit()
IllegalStateException - if isActive() is falseRollbackException - if the commit failsboolean getRollbackOnly()
IllegalStateException - if isActive() is falseboolean isActive()
PersistenceException - if an unexpected error condition is encounteredvoid rollback()
IllegalStateException - if isActive() is falsePersistenceException - if an unexpected error condition is encounteredvoid setRollbackOnly()
IllegalStateException - if isActive() is falseCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.