Android.Database.AbstractCursor Members

The members of Android.Database.AbstractCursor are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
ColumnCountint. Return total number of columns
[read-only]
abstract
Countint. Returns the numbers of rows in the cursor.
[read-only]
ExtrasAndroid.OS.Bundle. Returns a bundle of extra values.
[read-only]
IsAfterLastbool. Returns whether the cursor is pointing to the position after the last row.
[read-only]
IsBeforeFirstbool. Returns whether the cursor is pointing to the position before the first row.
[read-only]
IsClosedbool. return true if the cursor is closed
[read-only]
IsFirstbool. Returns whether the cursor is pointing to the first row.
[read-only]
IsLastbool. Returns whether the cursor is pointing to the last row.
[read-only]
NotificationUriAndroid.Net.Uri. Return the URI at which notifications of changes in this Cursor's data will be delivered, as previously set by ICursor.SetNotificationUri(Android.Content.ContentResolver, Android.Net.Uri).
[read-only]
Positionint. Returns the current position of the cursor in the row set.
[read-only]
WantsAllOnMoveCallsbool. onMove() will only be called across processes if this method returns true.
[read-only]
WindowCursorWindow. If the cursor is backed by a Android.Database.CursorWindow, returns a pre-filled window with the contents of the cursor, otherwise null.

Protected Properties

MClosedbool.
MContentResolverAndroid.Content.ContentResolver.
MCurrentRowIDJava.Lang.Long. If AbstractCursor.MRowIdColumnIndex is not -1 this contains contains the value of the column at AbstractCursor.MRowIdColumnIndex for the current row this cursor is pointing at.
MPosint.
MRowIdColumnIndexint. This must be set to the index of the row ID column by any subclass that wishes to support updates.
MUpdatedRowsIDictionary.
[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Close()
Closes the Cursor, releasing all of its resources and making it completely invalid.
CopyStringToBuffer(int, CharArrayBuffer)
Retrieves the requested column text and stores it in the buffer provided.
Deactivate()
Deactivates the Cursor, making all calls on it fail until ICursor.Requery is called.
FillWindow(int, CursorWindow)
Copies cursor data into the window.
GetBlob(int) : byte[]
Returns the value of the requested column as a byte array.
GetColumnIndex(string) : int
Returns the zero-based index for the given column name, or -1 if the column doesn't exist.
GetColumnIndexOrThrow(string) : int
Returns the zero-based index for the given column name, or throws Java.Lang.IllegalArgumentException if the column doesn't exist.
GetColumnName(int) : string
Returns the column name at the given zero-based column index.
abstract
GetColumnNames() : string[]
Returns a string array holding the names of all of the columns in the result set in the order in which they were listed in the result.
abstract
GetDouble(int) : double
Returns the value of the requested column as a double.
abstract
GetFloat(int) : float
Returns the value of the requested column as a float.
abstract
GetInt(int) : int
Returns the value of the requested column as an int.
abstract
GetLong(int) : long
Returns the value of the requested column as a long.
abstract
GetShort(int) : short
Returns the value of the requested column as a short.
abstract
GetString(int) : string
Returns the value of the requested column as a String.
GetType(int) : FieldType
Returns data type of the given column's value.
abstract
IsNull(int) : bool
Returns true if the value in the indicated column is null.
Move(int) : bool
Move the cursor by a relative amount, forward or backward, from the current position.
MoveToFirst() : bool
Move the cursor to the first row.
MoveToLast() : bool
Move the cursor to the last row.
MoveToNext() : bool
Move the cursor to the next row.
MoveToPosition(int) : bool
Move the cursor to an absolute position.
MoveToPrevious() : bool
Move the cursor to the previous row.
OnMove(int, int) : bool
This function is called every time the cursor is successfully scrolled to a new position, giving the subclass a chance to update any state it may have.
RegisterContentObserver(ContentObserver)
Register an observer that is called when changes happen to the content backing this cursor.
RegisterDataSetObserver(DataSetObserver)
Register an observer that is called when changes happen to the contents of the this cursors data set, for example, when the data set is changed via ICursor.Requery, ICursor.Deactivate, or ICursor.Close.
Requery() : bool
Performs the query that created the cursor again, refreshing its contents.
Respond(Android.OS.Bundle) : Android.OS.Bundle
This is an out-of-band way for the the user of a cursor to communicate with the cursor.
SetNotificationUri(Android.Content.ContentResolver, Android.Net.Uri)
Specifies a content URI to watch for changes.
UnregisterContentObserver(ContentObserver)
Unregister an observer that has previously been registered with this cursor via ICursor.RegisterContentObserver(ContentObserver).
UnregisterDataSetObserver(DataSetObserver)
Unregister an observer that has previously been registered with this cursor via ICursor.RegisterContentObserver(ContentObserver).

Protected Methods

CheckPosition()
This function throws CursorIndexOutOfBoundsException if the cursor position is out of bounds.
GetUpdatedField(int) : Java.Lang.Object
IsFieldUpdated(int) : bool
OnChange(bool)
Subclasses must call this method when they finish committing updates to notify all observers.