|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.heckmansoft.surjey.model.datastore.Transaction
Manages a transaction for a given connection.
| Field Summary | |
protected java.sql.Connection |
connection
|
protected org.apache.log4j.Logger |
log
|
| Constructor Summary | |
Transaction(java.sql.Connection connection)
|
|
| Method Summary | |
void |
commit()
Attempt to commit the transaction. |
void |
finish(boolean status)
Finish the transaction by either commiting or rolling back depending on the value of given argument. |
void |
incrementUsers()
Notify the transaction there is an additional user. |
void |
rollback()
Attempt to rollback the transaction. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.sql.Connection connection
protected org.apache.log4j.Logger log
| Constructor Detail |
public Transaction(java.sql.Connection connection)
| Method Detail |
public void incrementUsers()
public void finish(boolean status)
status - Whether to commit (true) or rollback (false).public void commit()
public void rollback()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||