|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Transaction
This is a high-level transaction object used throughout the persistence layer. Also, it can store attributes, which can be used to communicate data through calling layers.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Method Summary | |
|---|---|
void |
begin()
Start the transaction. |
void |
commit()
Commit a transaction. |
java.sql.Connection |
getConnection()
Get the connection to the database from this transaction. |
java.lang.Long |
getEndSerial()
Get the serial when this transaction ended. |
java.lang.Long |
getSerial()
Get the serial number when this transaction began. |
DatabaseStatistics |
getStats()
Get statistics from this transaction. |
boolean |
isRollbackOnly()
Returns whether this transaction was marked "rollback only". |
void |
markRollbackOnly()
Mark this transaction as rollback only. |
void |
rollback()
Rollback this transaction. |
| Methods inherited from interface java.util.Map |
|---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Method Detail |
|---|
void begin()
begin(). All subsequent calls to this method
will increase the transaction depth, and to commit the transaction
exactly that many commit() and rollback()
calls must occur.
void commit()
void rollback()
void markRollbackOnly()
boolean isRollbackOnly()
java.lang.Long getSerial()
java.lang.Long getEndSerial()
DatabaseStatistics getStats()
java.sql.Connection getConnection()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||