|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CompassTransaction
Allows the application to define units of work, while maintaining abstraction from the underlying transaction implementation (eg. JTA, Local).
CompassSession.beginTransaction(),
TransactionFactory| Nested Class Summary | |
|---|---|
static class |
CompassTransaction.TransactionIsolation
|
| Method Summary | |
|---|---|
void |
commit()
Ends the current unit of work. |
CompassSession |
getSession()
Returns the current Compass transaction associated with this transaction. |
void |
rollback()
Force the underlying transaction to roll back. |
boolean |
wasCommitted()
Check if this transaction was successfully committed. |
boolean |
wasRolledBack()
Was this transaction rolled back or set to rollback only? |
| Method Detail |
|---|
void commit()
throws CompassException
CompassException
void rollback()
throws CompassException
CompassException
boolean wasRolledBack()
throws CompassException
CompassException
boolean wasCommitted()
throws CompassException
false even after successful invocation of
commit().
CompassExceptionCompassSession getSession()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||