AbstractWindowedCursor Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A base class for Cursors that store their data in CursorWindow
s.
[Android.Runtime.Register("android/database/AbstractWindowedCursor", DoNotGenerateAcw=true)]
public abstract class AbstractWindowedCursor : Android.Database.AbstractCursor
[<Android.Runtime.Register("android/database/AbstractWindowedCursor", DoNotGenerateAcw=true)>]
type AbstractWindowedCursor = class
inherit AbstractCursor
- Inheritance
- Derived
- Attributes
Remarks
A base class for Cursors that store their data in CursorWindow
s.
The cursor owns the cursor window it uses. When the cursor is closed, its window is also closed. Likewise, when the window used by the cursor is changed, its old window is closed. This policy of strict ownership ensures that cursor windows are not leaked.
Subclasses are responsible for filling the cursor window with data during #onMove(int, int)
, allocating a new cursor window if necessary. During #requery()
, the existing cursor window should be cleared and filled with new data.
If the contents of the cursor change or become invalid, the old window must be closed (because it is owned by the cursor) and set to null.
Java documentation for android.database.AbstractWindowedCursor
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructors
AbstractWindowedCursor() | |
AbstractWindowedCursor(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Properties
Class |
Returns the runtime class of this |
ColumnCount |
Return total number of columns (Inherited from AbstractCursor) |
Count |
Returns the numbers of rows in the cursor. (Inherited from AbstractCursor) |
Extras |
Returns a bundle of extra values. (Inherited from AbstractCursor) |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
HasWindow |
Returns true if the cursor has an associated cursor window. |
IsAfterLast |
Returns whether the cursor is pointing to the position after the last row. (Inherited from AbstractCursor) |
IsBeforeFirst |
Returns whether the cursor is pointing to the position before the first row. (Inherited from AbstractCursor) |
IsClosed |
return true if the cursor is closed (Inherited from AbstractCursor) |
IsFirst |
Returns whether the cursor is pointing to the first row. (Inherited from AbstractCursor) |
IsLast |
Returns whether the cursor is pointing to the last row. (Inherited from AbstractCursor) |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
MClosed |
This member is deprecated. (Inherited from AbstractCursor) |
MContentResolver |
This member is deprecated. (Inherited from AbstractCursor) |
MCurrentRowID |
Obsolete.
If MRowIdColumnIndex is not -1 this contains contains the value of the column at MRowIdColumnIndex for the current row this cursor is pointing at. (Inherited from AbstractCursor) |
MPos |
This member is deprecated. (Inherited from AbstractCursor) |
MRowIdColumnIndex |
Obsolete.
This must be set to the index of the row ID column by any subclass that wishes to support updates. (Inherited from AbstractCursor) |
MUpdatedRows |
Obsolete.
(Inherited from AbstractCursor)
|
MWindow |
The cursor window owned by this cursor. |
NotificationUri |
Return the URI at which notifications of changes in this Cursor's data will be delivered, as previously set by SetNotificationUri(ContentResolver, Uri). (Inherited from AbstractCursor) |
NotificationUris | (Inherited from AbstractCursor) |
PeerReference | (Inherited from Object) |
Position |
Returns the current position of the cursor in the row set. (Inherited from AbstractCursor) |
ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
WantsAllOnMoveCalls |
onMove() will only be called across processes if this method returns true. (Inherited from AbstractCursor) |
Window |
If the cursor is backed by a |
Methods
CheckPosition() |
This function throws CursorIndexOutOfBoundsException if the cursor position is out of bounds. (Inherited from AbstractCursor) |
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
Close() |
Closes the Cursor, releasing all of its resources and making it completely invalid. (Inherited from AbstractCursor) |
CopyStringToBuffer(Int32, CharArrayBuffer) |
Retrieves the requested column text and stores it in the buffer provided. (Inherited from AbstractCursor) |
Deactivate() |
Deactivates the Cursor, making all calls on it fail until Requery() is called. (Inherited from AbstractCursor) |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
FillWindow(Int32, CursorWindow) |
Copies cursor data into the window. (Inherited from AbstractCursor) |
GetBlob(Int32) |
Returns the value of the requested column as a byte array. (Inherited from AbstractCursor) |
GetColumnIndex(String) |
Returns the zero-based index for the given column name, or -1 if the column doesn't exist. (Inherited from AbstractCursor) |
GetColumnIndexOrThrow(String) |
Returns the zero-based index for the given column name, or throws IllegalArgumentException if the column doesn't exist. (Inherited from AbstractCursor) |
GetColumnName(Int32) |
Returns the column name at the given zero-based column index. (Inherited from AbstractCursor) |
GetColumnNames() |
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. (Inherited from AbstractCursor) |
GetDouble(Int32) |
Returns the value of the requested column as a double. |
GetFloat(Int32) |
Returns the value of the requested column as a float. |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
GetInt(Int32) |
Returns the value of the requested column as an int. |
GetLong(Int32) |
Returns the value of the requested column as a long. |
GetShort(Int32) |
Returns the value of the requested column as a short. |
GetString(Int32) |
Returns the value of the requested column as a String. |
GetType(Int32) |
Returns data type of the given column's value. (Inherited from AbstractCursor) |
GetUpdatedField(Int32) |
Obsolete.
This member is deprecated. (Inherited from AbstractCursor) |
IsBlob(Int32) |
Obsolete.
This member is deprecated. |
IsFieldUpdated(Int32) |
Obsolete.
This member is deprecated. (Inherited from AbstractCursor) |
IsFloat(Int32) |
Obsolete.
This member is deprecated. |
IsLong(Int32) |
Obsolete.
This member is deprecated. |
IsNull(Int32) |
Returns |
IsString(Int32) |
Obsolete.
This member is deprecated. |
JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
Move(Int32) |
Move the cursor by a relative amount, forward or backward, from the current position. (Inherited from AbstractCursor) |
MoveToFirst() |
Move the cursor to the first row. (Inherited from AbstractCursor) |
MoveToLast() |
Move the cursor to the last row. (Inherited from AbstractCursor) |
MoveToNext() |
Move the cursor to the next row. (Inherited from AbstractCursor) |
MoveToPosition(Int32) |
Move the cursor to an absolute position. (Inherited from AbstractCursor) |
MoveToPrevious() |
Move the cursor to the previous row. (Inherited from AbstractCursor) |
Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
OnChange(Boolean) |
Subclasses must call this method when they finish committing updates to notify all observers. (Inherited from AbstractCursor) |
OnMove(Int32, Int32) |
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. (Inherited from AbstractCursor) |
RegisterContentObserver(ContentObserver) |
Register an observer that is called when changes happen to the content backing this cursor. (Inherited from AbstractCursor) |
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 Requery(), Deactivate(), or Close(). (Inherited from AbstractCursor) |
Requery() |
Performs the query that created the cursor again, refreshing its contents. (Inherited from AbstractCursor) |
Respond(Bundle) |
This is an out-of-band way for the the user of a cursor to communicate with the cursor. (Inherited from AbstractCursor) |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
SetNotificationUri(ContentResolver, Uri) |
Specifies a content URI to watch for changes. (Inherited from AbstractCursor) |
SetNotificationUris(ContentResolver, IList<Uri>) | (Inherited from AbstractCursor) |
SetWindow(CursorWindow) |
Sets a new cursor window for the cursor to use. |
ToArray<T>() | (Inherited from Object) |
ToString() |
Returns a string representation of the object. (Inherited from Object) |
UnregisterContentObserver(ContentObserver) |
Unregister an observer that has previously been registered with this cursor via RegisterContentObserver(ContentObserver). (Inherited from AbstractCursor) |
UnregisterDataSetObserver(DataSetObserver) |
Unregister an observer that has previously been registered with this cursor via RegisterContentObserver(ContentObserver). (Inherited from AbstractCursor) |
UnregisterFromRuntime() | (Inherited from Object) |
Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
IJavaPeerable.Disposed() | (Inherited from Object) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Object) |
IJavaPeerable.Finalized() | (Inherited from Object) |
IJavaPeerable.JniManagedPeerState | (Inherited from Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Object) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |