|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.base.database.JDBCTransaction
public class JDBCTransaction
| Constructor Summary | |
|---|---|
JDBCTransaction(java.sql.Connection con)
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JDBCTransaction(java.sql.Connection con)
| Method Detail |
|---|
public void commit()
Transaction
commit in interface Transactionpublic void rollback()
Transaction
rollback in interface Transactionpublic boolean wasRolledBack()
Transaction
wasRolledBack in interface Transactionpublic boolean wasCommitted()
Transaction
wasCommitted in interface Transactionpublic boolean isActive()
Transaction
isActive in interface Transactionpublic boolean isExistingTransaction()
Transaction
isExistingTransaction in interface Transactionpublic void addListener(java.lang.Runnable runnable)
Transaction
addListener in interface Transactionrunnable - 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 | |||||||||