|
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 |
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 Transaction
public void rollback()
Transaction
rollback
in interface Transaction
public boolean wasRolledBack()
Transaction
wasRolledBack
in interface Transaction
public boolean wasCommitted()
Transaction
wasCommitted
in interface Transaction
public boolean isActive()
Transaction
isActive
in interface Transaction
public boolean isExistingTransaction()
Transaction
isExistingTransaction
in interface Transaction
public void addListener(java.lang.Runnable runnable)
Transaction
addListener
in interface Transaction
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 |