java.lang.Object | ||
↳ | android.database.sqlite.SQLiteClosable | |
↳ | android.database.CursorWindow |
A buffer containing multiple cursor rows.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creator<CursorWindow> | CREATOR |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new empty window.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Allocate a row in cursor window
| |||||||||||
Clears out the existing contents of the window, making it safe to reuse
for new data.
| |||||||||||
Cleans up the native resources associated with the window.
| |||||||||||
copy the text for the given field in the provided char array.
| |||||||||||
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Free the last row
| |||||||||||
Returns a byte array for the given field.
| |||||||||||
Returns a double for the given field.
| |||||||||||
Returns a float for the given field.
| |||||||||||
Returns an int for the given field.
| |||||||||||
Returns a long for the given field.
| |||||||||||
Returns the number of rows in this window.
| |||||||||||
Returns a short for the given field.
| |||||||||||
Returns the starting position of this window within the entire
Cursor's result set.
| |||||||||||
Returns a String for the given field.
| |||||||||||
Checks if a field contains either a blob or is null.
| |||||||||||
Returns
true if given field is NULL . | |||||||||||
copy byte array to cursor window
| |||||||||||
Copy double to cursor window
| |||||||||||
Copy integer to cursor window
| |||||||||||
Set the [row, col] value to NULL
| |||||||||||
Copy String to cursor window
| |||||||||||
Set number of Columns
| |||||||||||
Set the start position of cursor window
| |||||||||||
Flatten this object in to a Parcel.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Is called before the object's memory is being reclaimed by the VM.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class android.database.sqlite.SQLiteClosable
| |||||||||||
From class java.lang.Object
| |||||||||||
From interface android.os.Parcelable
|
Creates a new empty window.
localWindow | true if this window will be used in this process only |
---|
Allocate a row in cursor window
Clears out the existing contents of the window, making it safe to reuse for new data. Note that the number of columns in the window may NOT change across a call to clear().
Cleans up the native resources associated with the window.
copy the text for the given field in the provided char array.
row | the row to read from, row - getStartPosition() being the actual row in the window |
---|---|
col | the column to read from |
buffer | the CharArrayBuffer to copy the text into, If the requested string is larger than the buffer a new char buffer will be created to hold the string. and assigne to CharArrayBuffer.data |
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Free the last row
Returns a byte array for the given field.
row | the row to read from, row - getStartPosition() being the actual row in the window |
---|---|
col | the column to read from |
Returns a double for the given field. row is 0 based
row | the row to read from, row - getStartPosition() being the actual row in the window |
---|---|
col | the column to read from |
Returns a float for the given field. row is 0 based
row | the row to read from, row - getStartPosition() being the actual row in the window |
---|---|
col | the column to read from |
Returns an int for the given field.
row | the row to read from, row - getStartPosition() being the actual row in the window |
---|---|
col | the column to read from |
Returns a long for the given field. row is 0 based
row | the row to read from, row - getStartPosition() being the actual row in the window |
---|---|
col | the column to read from |
Returns the number of rows in this window.
Returns a short for the given field. row is 0 based
row | the row to read from, row - getStartPosition() being the actual row in the window |
---|---|
col | the column to read from |
Returns the starting position of this window within the entire Cursor's result set.
Returns a String for the given field.
row | the row to read from, row - getStartPosition() being the actual row in the window |
---|---|
col | the column to read from |
Checks if a field contains either a blob or is null.
row | the row to read from, row - getStartPosition() being the actual row in the window |
---|---|
col | the column to read from |
true
if given field is NULL
or a blob
Returns true
if given field is NULL
.
row | the row to read from, row - getStartPosition() being the actual row in the window |
---|---|
col | the column to read from |
true
if given field is NULL
copy byte array to cursor window
Copy double to cursor window
Copy integer to cursor window
Set the [row, col] value to NULL
Copy String to cursor window
Set number of Columns
Set the start position of cursor window
Flatten this object in to a Parcel.
dest | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. |
Is called before the object's memory is being reclaimed by the VM. This can only happen once the VM has detected, during a run of the garbage collector, that the object is no longer reachable by any thread of the running application.
The method can be used to free system resources or perform other cleanup
before the object is garbage collected. The default implementation of the
method is empty, which is also expected by the VM, but subclasses can
override finalize()
as required. Uncaught exceptions which are
thrown during the execution of this method cause it to terminate
immediately but are otherwise ignored.
Note that the VM does guarantee that finalize()
is called at most
once for any object, but it doesn't guarantee when (if at all) finalize()
will be called. For example, object B's finalize()
can delay the execution of object A's finalize()
method and
therefore it can delay the reclamation of A's memory. To be safe, use a
ReferenceQueue, because it provides more control
over the way the VM deals with references during garbage collection.