| java.lang.Object com.sleepycat.je.Cursor
All known Subclasses: com.sleepycat.je.SecondaryCursor,
Cursor | public class Cursor (Code) | | Javadoc for this public class is generated
via the doc templates in the doc_src directory.
|
Method Summary | |
boolean | advanceCursor(DatabaseEntry key, DatabaseEntry data) | void | checkEnv() | void | checkState(boolean mustBeInitialized) Check the environment and cursor state. | protected void | checkUpdatesAllowed(String operation) | public void | close() Javadoc for this public method is generated via
the doc templates in the doc_src directory. | synchronized void | close(boolean releaseNonTxnLocks) Parameters: releaseNonTxnLocks - should normally be true. | public int | count() Javadoc for this public method is generated via
the doc templates in the doc_src directory. | int | countInternal(LockMode lockMode) Counts duplicates without parameter checking. | public OperationStatus | delete() Javadoc for this public method is generated via
the doc templates in the doc_src directory. | OperationStatus | deleteInternal() Internal version of delete() that does no parameter checking. | OperationStatus | deleteNoNotify() Clone the cursor, delete at current position, and if successful, swap
cursors. | public Cursor | dup(boolean samePosition) Javadoc for this public method is generated via
the doc templates in the doc_src directory. | public CursorConfig | getConfig() Javadoc for this public method is generated via
the doc templates in the doc_src directory. | public OperationStatus | getCurrent(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) Javadoc for this public method is generated via
the doc templates in the doc_src directory. | OperationStatus | getCurrentInternal(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) Returns the current key and data. | CursorImpl | getCursorImpl() Internal entrypoint. | public Database | getDatabase() Javadoc for this public method is generated via
the doc templates in the doc_src directory. | DatabaseImpl | getDatabaseImpl() Always returns non-null, while getDatabase() returns null if no handle
is associated with this cursor. | public OperationStatus | getFirst(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) Javadoc for this public method is generated via
the doc templates in the doc_src directory. | public OperationStatus | getLast(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) Javadoc for this public method is generated via
the doc templates in the doc_src directory. | public OperationStatus | getNext(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) Javadoc for this public method is generated via
the doc templates in the doc_src directory. | public OperationStatus | getNextDup(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) Javadoc for this public method is generated via
the doc templates in the doc_src directory. | public OperationStatus | getNextNoDup(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) Javadoc for this public method is generated via
the doc templates in the doc_src directory. | public OperationStatus | getPrev(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) Javadoc for this public method is generated via
the doc templates in the doc_src directory. | public OperationStatus | getPrevDup(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) Javadoc for this public method is generated via
the doc templates in the doc_src directory. | public OperationStatus | getPrevNoDup(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) Javadoc for this public method is generated via
the doc templates in the doc_src directory. | public OperationStatus | getSearchBoth(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) Javadoc for this public method is generated via
the doc templates in the doc_src directory. | public OperationStatus | getSearchBothRange(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) Javadoc for this public method is generated via
the doc templates in the doc_src directory. | public OperationStatus | getSearchKey(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) Javadoc for this public method is generated via
the doc templates in the doc_src directory. | public OperationStatus | getSearchKeyRange(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) Javadoc for this public method is generated via
the doc templates in the doc_src directory. | boolean | isReadUncommittedMode(LockMode lockMode) Returns whether the given lock mode will cause a read-uncommitted when
used with this cursor, taking into account the default cursor
configuration. | OperationStatus | position(DatabaseEntry key, DatabaseEntry data, LockMode lockMode, boolean first) Position the cursor at the first or last record of the database. | public OperationStatus | put(DatabaseEntry key, DatabaseEntry data) Javadoc for this public method is generated via
the doc templates in the doc_src directory. | public OperationStatus | putCurrent(DatabaseEntry data) Javadoc for this public method is generated via
the doc templates in the doc_src directory. | OperationStatus | putInternal(DatabaseEntry key, DatabaseEntry data, PutMode putMode) Internal version of put() that does no parameter checking. | public OperationStatus | putNoDupData(DatabaseEntry key, DatabaseEntry data) Javadoc for this public method is generated via
the doc templates in the doc_src directory. | OperationStatus | putNoNotify(DatabaseEntry key, DatabaseEntry data, PutMode putMode, DatabaseEntry returnOldData) Performs the put operation but does not notify triggers (does not
perform secondary updates). | public OperationStatus | putNoOverwrite(DatabaseEntry key, DatabaseEntry data) Javadoc for this public method is generated via
the doc templates in the doc_src directory. | OperationStatus | retrieveNext(DatabaseEntry key, DatabaseEntry data, LockMode lockMode, GetMode getMode) Retrieve the next or previous record. | OperationStatus | search(DatabaseEntry key, DatabaseEntry data, LockMode lockMode, SearchMode searchMode) Perform search by key, data, or both. | void | setNonCloning(boolean nonCloning) | void | trace(Level level, String methodName, DatabaseEntry key, DatabaseEntry data, LockMode lockMode) Send trace messages to the java.util.logger. | void | trace(Level level, String methodName, LockMode lockMode) Send trace messages to the java.util.logger. |
Cursor | Cursor(Database dbHandle, Transaction txn, CursorConfig cursorConfig) throws DatabaseException(Code) | | Creates a cursor for a given user transaction.
If txn is null, a non-transactional cursor will be created that
releases locks for the prior operation when the next operation
suceeds.
|
Cursor | Cursor(Database dbHandle, Locker locker, CursorConfig cursorConfig) throws DatabaseException(Code) | | Creates a cursor for a given locker.
If locker is null or is non-transactional, a non-transactional cursor
will be created that releases locks for the prior operation when the
next operation suceeds.
|
Cursor | Cursor(DatabaseImpl dbImpl, Locker locker, CursorConfig cursorConfig) throws DatabaseException(Code) | | Creates a cursor for a given locker and no db handle.
The locker parameter must be non-null. With this constructor, we use
the given locker without applying any special rules for different
isolation levels -- the caller must supply the correct locker.
|
checkState | void checkState(boolean mustBeInitialized) throws DatabaseException(Code) | | Check the environment and cursor state.
|
close | public void close() throws DatabaseException(Code) | | Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
close | synchronized void close(boolean releaseNonTxnLocks) throws DatabaseException(Code) | | Parameters: releaseNonTxnLocks - should normally be true. SeeCursorImpl.close(boolean) [#15573] |
count | public int count() throws DatabaseException(Code) | | Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
deleteInternal | OperationStatus deleteInternal() throws DatabaseException(Code) | | Internal version of delete() that does no parameter checking. Calls
deleteNoNotify() and notifies triggers (performs secondary updates).
|
deleteNoNotify | OperationStatus deleteNoNotify() throws DatabaseException(Code) | | Clone the cursor, delete at current position, and if successful, swap
cursors. Does not notify triggers (does not perform secondary updates).
|
dup | public Cursor dup(boolean samePosition) throws DatabaseException(Code) | | Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
getConfig | public CursorConfig getConfig()(Code) | | Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
getDatabase | public Database getDatabase()(Code) | | Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
getDatabaseImpl | DatabaseImpl getDatabaseImpl()(Code) | | Always returns non-null, while getDatabase() returns null if no handle
is associated with this cursor.
|
isReadUncommittedMode | boolean isReadUncommittedMode(LockMode lockMode)(Code) | | Returns whether the given lock mode will cause a read-uncommitted when
used with this cursor, taking into account the default cursor
configuration.
|
setNonCloning | void setNonCloning(boolean nonCloning)(Code) | | |
trace | void trace(Level level, String methodName, DatabaseEntry key, DatabaseEntry data, LockMode lockMode)(Code) | | Send trace messages to the java.util.logger. Don't rely on the logger
alone to conditionalize whether we send this message, we don't even want
to construct the message if the level is not enabled.
|
trace | void trace(Level level, String methodName, LockMode lockMode)(Code) | | Send trace messages to the java.util.logger. Don't rely on the logger
alone to conditionalize whether we send this message, we don't even want
to construct the message if the level is not enabled.
|
|
|