Public Member Functions | |
final Environment | getEnvironment () |
final Transaction | getTransaction () |
final Transaction | beginTransaction (TransactionConfig config) throws DatabaseException |
final Transaction | commitTransaction () throws DatabaseException, IllegalStateException |
final Transaction | abortTransaction () throws DatabaseException, IllegalStateException |
Static Public Member Functions | |
static CurrentTransaction | getInstance (Environment env) |
Package Functions | |
final boolean | isTxnMode () |
final boolean | isCdbMode () |
final LockMode | getWriteLockMode () |
boolean | isAutoCommitAllowed () throws DatabaseException |
final boolean | isReadUncommitted () |
Cursor | openCursor (Database db, CursorConfig cursorConfig, boolean writeCursor, Transaction txn) throws DatabaseException |
Cursor | dupCursor (Cursor cursor, boolean writeCursor, boolean samePosition) throws DatabaseException |
void | closeCursor (Cursor cursor) throws DatabaseException |
boolean | isCDBCursorOpen (Database db) throws DatabaseException |
Static Package Functions | |
static CurrentTransaction | getInstanceInternal (Environment env) |
Definition at line 37 of file CurrentTransaction.java.
|
Aborts the transaction that is active for the current thread for this environment and makes the parent transaction (if any) the current transaction.
Definition at line 245 of file CurrentTransaction.java. Referenced by com::sleepycat::collections::TransactionRunner::run(). |
|
Begins a new transaction for this environment and associates it with the current thread. If a transaction is already active for this environment and thread, a nested transaction will be created.
Definition at line 176 of file CurrentTransaction.java. Referenced by com::sleepycat::collections::TransactionRunner::run(). |
|
Closes a cursor.
Definition at line 397 of file CurrentTransaction.java. Referenced by com::sleepycat::collections::DataCursor::close(). |
|
Commits the transaction that is active for the current thread for this environment and makes the parent transaction (if any) the current transaction.
Definition at line 217 of file CurrentTransaction.java. Referenced by com::sleepycat::collections::TransactionRunner::run(). |
|
Duplicates a cursor for a given database.
Definition at line 366 of file CurrentTransaction.java. Referenced by com::sleepycat::collections::RangeCursor::dup(). |
|
Returns the underlying Berkeley DB environment. Definition at line 132 of file CurrentTransaction.java. Referenced by com::sleepycat::collections::DataView::getEnv(). |
|
Gets the CurrentTransaction accessor for a specified Berkeley DB environment. This method always returns the same reference when called more than once with the same environment parameter.
Definition at line 60 of file CurrentTransaction.java. References getInstanceInternal(), and isTxnMode(). |
|
Gets the CurrentTransaction accessor for a specified Berkeley DB environment. Unlike getInstance(), this method never returns null.
Definition at line 72 of file CurrentTransaction.java. Referenced by com::sleepycat::collections::DataView::DataView(), and getInstance(). |
|
Returns the transaction associated with the current thread for this environment, or null if no transaction is active. Definition at line 141 of file CurrentTransaction.java. Referenced by isAutoCommitAllowed(), com::sleepycat::collections::TransactionRunner::run(), and com::sleepycat::collections::DataView::useTransaction(). |
|
Return the LockMode.RMW or null, depending on whether locking is enabled. LockMode.RMW will cause an error if passed when locking is not enabled. Locking is enabled if locking or transactions were specified for this environment. Definition at line 124 of file CurrentTransaction.java. Referenced by com::sleepycat::collections::DataCursor::getLockMode(). |
|
Returns whether auto-commit may be performed by the collections API. True is returned no collections API transaction is currently active, and no XA transaction is currently active. Definition at line 152 of file CurrentTransaction.java. References getTransaction(). |
|
Returns true if a CDB cursor is open and therefore a Database write operation should not be attempted since a self-deadlock may result. Definition at line 427 of file CurrentTransaction.java. Referenced by com::sleepycat::collections::DataView::append(). |
|
Returns whether this is a Concurrent Data Store environment. Definition at line 113 of file CurrentTransaction.java. |
|
Returns whether the current transaction is a readUncommitted transaction. Definition at line 262 of file CurrentTransaction.java. |
|
Returns whether this is a transactional environment. Definition at line 105 of file CurrentTransaction.java. Referenced by com::sleepycat::collections::DataView::DataView(), and getInstance(). |
|
Opens a cursor for a given database, dup'ing an existing CDB cursor if one is open for the current thread. Definition at line 295 of file CurrentTransaction.java. Referenced by com::sleepycat::collections::RangeCursor::RangeCursor(). |