|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.carbon.registry.core.jdbc.utils.Transaction
public class Transaction
This is the base class that manages the transactional database operations of the Registry. The transactions API of the Registry is capable of handling nested transactions. If a nested transaction is rollbacked, the whole outer transaction would also be rollbacked, so that the database will not be in an inconsistent state.
The transaction API also supports transactions across multiple databases. This allows various portions of the Registry to be mounted from various databases and work as a part of a single tree. The transaction is session scoped, and therefore, is available only on a single running thread. Multiple threads would have its own transaction and thereby make it possible to manage concurrency at a much lower level.
Constructor Summary | |
---|---|
Transaction()
|
Method Summary | |
---|---|
static void |
init(DataAccessManager dataAccessManager)
Initializes the Transaction Object. |
static boolean |
isRollbacked()
Method to determine whether a transaction has been rollbacked or not. |
static boolean |
isStarted()
Method to determine whether a transaction is started or not. |
static void |
popTransaction()
Pop stacked transaction and replace the existing one with that. |
static void |
pushTransaction()
Push current transaction to a stack and make room for a new one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Transaction()
Method Detail |
---|
public static void init(DataAccessManager dataAccessManager)
dataAccessManager
- the data access manager to be used to communicate with the database.public static void pushTransaction()
public static void popTransaction()
public static boolean isStarted()
public static boolean isRollbacked()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |