|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DatabaseTransaction
This class represents a database transaction, which is used to support consistency and
concurrency. A database transaction is utilized by the Transaction
API, to provide
database access to the registry.
Method Summary | |
---|---|
void |
decNestedDepth()
This method will decrement the nested depth of the transaction on the current session. |
int |
getNestedDepth()
Method to obtain the depth of nesting of this transaction at a given point in time. |
void |
incNestedDepth()
This method will increment the nested depth of the transaction on the current session. |
boolean |
isRollbacked()
Method to determine whether this transaction has been rollbacked at least once. |
boolean |
isStarted()
Method to determine whether a transaction is started or not. |
void |
popTransaction()
Pop stacked transaction and replace the existing one with that. |
void |
pushTransaction()
Push current transaction to a stack and make room for a new one. |
void |
setRollbacked(boolean rollbacked)
Method to set whether this transaction has been rollbacked or not. |
void |
setStarted(boolean started)
Method to set whether a transaction is started or not. |
Method Detail |
---|
void pushTransaction()
void popTransaction()
boolean isStarted()
void setStarted(boolean started)
started
- whether a transaction is started or not.void incNestedDepth()
void decNestedDepth()
int getNestedDepth()
boolean isRollbacked()
void setRollbacked(boolean rollbacked)
rollbacked
- whether this transaction has been rollbacked or not.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |