|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transaction
This represents the state of a running transaction that can be comitted or rolled back
Method Summary | |
---|---|
void |
commit()
This will commit the transaction. |
void |
finallyRollbackIfNotCommitted()
This is designed to be called in a top level finally block and it will attempt to rollback the transaction IF it has not already been committed. |
boolean |
isNewTransaction()
|
void |
rollback()
This will rollback the transaction. |
Method Detail |
---|
void commit() throws TransactionRuntimeException
org.ofbiz.core.entity.GenericTransactionException
- if the transaction cannot be commited
TransactionRuntimeException
void rollback() throws TransactionRuntimeException
org.ofbiz.core.entity.GenericTransactionException
- if the transaction cannot be rollbacked
TransactionRuntimeException
void finallyRollbackIfNotCommitted()
boolean isNewTransaction()
commit()
or rollback()
will actually do anything
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |