Method | Description | |
---|---|---|
Clone ( ) : |
Clones a Database Cursor This method wraps the native ups_cursor_clone function. |
|
Close ( ) : void |
Closes the Cursor This method wraps the native ups_cursor_close function. |
|
Create ( |
Creates a new Cursor
|
|
Create ( |
Creates a new Cursor in a Transaction This method wraps the native ups_cursor_create function. |
|
Cursor ( |
Constructor which creates a new Cursor
|
|
Cursor ( |
Constructor which creates a new Cursor in a Transaction
|
|
Dispose ( ) : void |
Closes the Cursor
|
|
Erase ( ) : void |
Erases the current key This method wraps the native ups_cursor_erase function. |
|
Find ( byte key ) : byte[] |
Searches a key and points the Cursor to this key; returns the record of the key
|
|
Find ( byte &key, int flags ) : byte[] |
Searches a key and points the Cursor to this key This method wraps the native ups_cursor_find function. |
|
GetDuplicateCount ( ) : int |
Returns the number of duplicate keys This method wraps the native ups_cursor_get_duplicate_count function. |
|
GetHandle ( ) : |
Returns the internal cursor handle.
|
|
GetKey ( ) : byte[] |
Retrieves the Key of the current item This method wraps the native ups_cursor_move function. |
|
GetRecord ( ) : byte[] |
Retrieves the Record of the current item This method wraps the native ups_cursor_move function. |
|
Insert ( byte key, byte record ) : void |
Inserts a Database item and points the Cursor to the new item This is an overloaded function for Insert(key, record, 0). |
|
Insert ( byte key, byte record, int flags ) : void |
Inserts a Database item and points the Cursor to the new item This method wraps the native ups_cursor_insert function. |
|
Move ( int flags ) : void |
Moves the Cursor to the direction specified in the flags This method wraps the native ups_cursor_move function. Moves the Cursor. Use the flags to specify the direction. After the move, use Cursor.GetKey and Cursor.GetRecord to retrieve key and record of the item. If the direction is not specified, the Cursor will not move. |
|
MoveFirst ( ) : void |
Moves the Cursor to the first Database element
|
|
MoveLast ( ) : void |
Moves the Cursor to the last Database element
|
|
MoveNext ( ) : void |
Moves the Cursor to the next Database element
|
|
MoveNext ( int flags ) : void |
Moves the Cursor to the next Database element
|
|
MovePrevious ( ) : void |
Moves the Cursor to the previous Database element
|
|
MovePrevious ( int flags ) : void |
Moves the Cursor to the previous Database element
|
|
Overwrite ( byte record ) : void |
Overwrites the record of the current item This method wraps the native ups_cursor_overwrite function. |
|
TryFind ( byte key ) : byte[] |
Searches for a key and points the Cursor to this key This method wraps the native ups_cursor_find function. |
|
TryFind ( byte &key, int flags ) : byte[] |
Searches for a key and points the Cursor to this key This method wraps the native ups_cursor_find function. |
|
TryMove ( byte &key, byte &record, int flags ) : bool |
Like Cursor.Move, but returns false only if cursor points to the first (or last) item, and a move to the previous (or next) item was requested (i.e., when ups_cursor_move returns UpsConst.UPS_KEY_NOT_FOUND).
|
Method | Description | |
---|---|---|
Cursor ( |
Constructor which creates a new Cursor
|
public Create ( |
||
db | The Database object | |
txn | The optional Transaction | |
return | void |
public Cursor ( |
||
db | The Database of this Cursor | |
return | System |
public Cursor ( |
||
db | ||
txn | ||
return | System |
public Find ( byte &key, int flags ) : byte[] | ||
key | byte | The key to search for |
flags | int | The flags, can be zero |
return | byte[] |
public Insert ( byte key, byte record ) : void | ||
key | byte | The key of the new item |
record | byte | The record of the new item |
return | void |
public Insert ( byte key, byte record, int flags ) : void | ||
key | byte | The key of the new item |
record | byte | The record of the new item |
flags | int | Optional flags for this operation, combined
/// with bitwise OR. Possible flags are:
///
|
return | void |
public Move ( int flags ) : void | ||
flags | int | The direction for the move. If no direction
/// is specified, the Cursor will remain on the current position.
/// Possible flags are:
///
|
return | void |
public MoveNext ( int flags ) : void | ||
flags | int | Additional flags for the movement |
return | void |
public MovePrevious ( int flags ) : void | ||
flags | int | Additional flags for the movement |
return | void |
public TryFind ( byte key ) : byte[] | ||
key | byte | The key to search for |
return | byte[] |
public TryFind ( byte &key, int flags ) : byte[] | ||
key | byte | The key to search for |
flags | int | The flags, can be zero |
return | byte[] |
public TryMove ( byte &key, byte &record, int flags ) : bool | ||
key | byte | |
record | byte | |
flags | int | |
return | bool |