Java android.database Cursor fields, constructors, methods, implement or subclass

Example usage for Java android.database Cursor fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.database Cursor.

The text is from its open source code.

Implementation

android.database.Cursor has the following implementations.
Click this link to see all its implementation.

Field

intFIELD_TYPE_NULL
Value returned by #getType(int) if the specified column is null
intFIELD_TYPE_INTEGER
Value returned by #getType(int) if the specified column type is integer
intFIELD_TYPE_FLOAT
Value returned by #getType(int) if the specified column type is float
intFIELD_TYPE_STRING
Value returned by #getType(int) if the specified column type is string
intFIELD_TYPE_BLOB
Value returned by #getType(int) if the specified column type is blob

Method

voidclose()
Closes the Cursor, releasing all of its resources and making it completely invalid.
voidcopyStringToBuffer(int columnIndex, CharArrayBuffer buffer)
Retrieves the requested column text and stores it in the buffer provided.
voiddeactivate()
Deactivates the Cursor, making all calls on it fail until #requery is called.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
byte[]getBlob(int columnIndex)
Returns the value of the requested column as a byte array.
ClassgetClass()
Returns the runtime class of this Object .
intgetColumnCount()
Return total number of columns
intgetColumnIndex(String columnName)
Returns the zero-based index for the given column name, or -1 if the column doesn't exist.
intgetColumnIndexOrThrow(String columnName)
Returns the zero-based index for the given column name, or throws IllegalArgumentException if the column doesn't exist.
StringgetColumnName(int columnIndex)
Returns the column name at the given zero-based column index.
String[]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.
intgetCount()
Returns the numbers of rows in the cursor.
doublegetDouble(int columnIndex)
Returns the value of the requested column as a double.
BundlegetExtras()
Returns a bundle of extra values.
floatgetFloat(int columnIndex)
Returns the value of the requested column as a float.
intgetInt(int columnIndex)
Returns the value of the requested column as an int.
longgetLong(int columnIndex)
Returns the value of the requested column as a long.
UrigetNotificationUri()
Return the URI at which notifications of changes in this Cursor's data will be delivered, as previously set by #setNotificationUri .
intgetPosition()
Returns the current position of the cursor in the row set.
shortgetShort(int columnIndex)
Returns the value of the requested column as a short.
StringgetString(int columnIndex)
Returns the value of the requested column as a String.
intgetType(int columnIndex)
Returns data type of the given column's value.
booleanisAfterLast()
Returns whether the cursor is pointing to the position after the last row.
booleanisBeforeFirst()
Returns whether the cursor is pointing to the position before the first row.
booleanisClosed()
return true if the cursor is closed
booleanisFirst()
Returns whether the cursor is pointing to the first row.
booleanisLast()
Returns whether the cursor is pointing to the last row.
booleanisNull(int columnIndex)
Returns true if the value in the indicated column is null.
booleanmove(int offset)
Move the cursor by a relative amount, forward or backward, from the current position.
booleanmoveToFirst()
Move the cursor to the first row.
booleanmoveToLast()
Move the cursor to the last row.
booleanmoveToNext()
Move the cursor to the next row.
booleanmoveToPosition(int position)
Move the cursor to an absolute position.
booleanmoveToPrevious()
Move the cursor to the previous row.
voidregisterContentObserver(ContentObserver observer)
Register an observer that is called when changes happen to the content backing this cursor.
voidregisterDataSetObserver(DataSetObserver observer)
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() .
booleanrequery()
Performs the query that created the cursor again, refreshing its contents.
voidsetNotificationUri(ContentResolver cr, Uri uri)
Register to watch a content URI for changes.
StringtoString()
Returns a string representation of the object.
voidunregisterContentObserver(ContentObserver observer)
Unregister an observer that has previously been registered with this cursor via #registerContentObserver .
voidunregisterDataSetObserver(DataSetObserver observer)
Unregister an observer that has previously been registered with this cursor via #registerContentObserver .