|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transaction
A represents a database transaction.
Method Summary | |
---|---|
void |
addListener(java.lang.Runnable runnable)
Add a runnable to be run when the transaction is committed. |
void |
commit()
Commits the current transaction, this will also close the underlying connection. |
boolean |
isActive()
Returns true if the transaction is active, false otherwise |
boolean |
isExistingTransaction()
Returns true if the transaction was previously started, false otherwise |
void |
rollback()
Rollback the current transaction, this will also close the underlying connection. |
boolean |
wasCommitted()
Returns true if the transaction was committed, false otherwise |
boolean |
wasRolledBack()
Returns true if the transaction was rolled back, false otherwise |
Method Detail |
---|
void commit()
TransactionException
- thrown if there are problems committing the transactionvoid rollback()
TransactionException
- thrown if there are problems committing the transactionboolean wasRolledBack()
boolean wasCommitted()
boolean isActive()
boolean isExistingTransaction()
void addListener(java.lang.Runnable runnable)
runnable
- the Runnable to be run when the transaction is completed.
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |