Reference:Android.database.ArrayListCursor
From Triled Wiki
android.database
public class android.database.ArrayListCursor
| java.lang.Object | |||
| android.database.AbstractCursor | Cursor | ||
| android.database.ArrayListCursor | |||
A convenience class that presents a two-dimensional ArrayList as a Cursor.
[edit] Summary
[edit] Fields inherited from class android.database.AbstractCursor
mContentResolver, mCurrentRowID, mPos, mRowIdColumnIndex, mUpdatedRows
[edit] Public Constructors
| )">ArrayListCursor (String[ ] columnNames, ArrayList rows) |
[edit] Public Methods
| int | count () | ||||
| Returns the numbers of rows in the cursor. | |||||
| boolean | deleteRow () | ||||
| Removes the row at the current cursor position from the underlying data store. | |||||
| 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. | |||||
| double | getDouble (int columnIndex) | ||||
| Returns the value of the requested column as a double. | |||||
| float | getFloat (int columnIndex) | ||||
| Returns the value of the requested column as a float. | |||||
| int | getInt (int columnIndex) | ||||
| Returns the value of the requested column as an int. | |||||
| long | getLong (int columnIndex) | ||||
| Returns the value of the requested column as a long. | |||||
| short | getShort (int columnIndex) | ||||
| Returns the value of the requested column as a short. | |||||
| String | getString (int columnIndex) | ||||
| Returns the value of the requested column as a String. | |||||
| boolean | isNull (int columnIndex) | ||||
| Returns true if the value in the indicated column is null. | |||||
[edit] Methods inherited from class android.database.AbstractCursor
abortUpdates, checkPosition, close, >)">commitUpdates, commitUpdates, count, deactivate, deleteRow, finalize, first, getColumnIndex, getColumnName, getColumnNames, getDouble, getExtras, getFloat, getInt, getLong, getShort, getString, getUpdatedField, getWantsAllOnMoveCalls, hasUpdates, isAfterLast, isBeforeFirst, isFieldUpdated, isFirst, isLast, isNull, last, move, moveTo, next, onChange, onMove, position, prev, registerContentObserver, registerDataSetObserver, requery, respond, setNotificationUri, supportsUpdates, unregisterContentObserver, unregisterDataSetObserver, update, updateDouble, updateFloat, updateInt, updateLong, updateShort, updateString, updateToNull[edit] Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait[edit] Methods inherited from interface android.database.Cursor
abortUpdates, close, >)">commitUpdates, commitUpdates, count, deactivate, deleteRow, first, getColumnIndex, getColumnName, getColumnNames, getDouble, getExtras, getFloat, getInt, getLong, getShort, getString, getWantsAllOnMoveCalls, hasUpdates, isAfterLast, isBeforeFirst, isFirst, isLast, isNull, last, move, moveTo, next, position, prev, registerContentObserver, registerDataSetObserver, requery, respond, setNotificationUri, supportsUpdates, unregisterContentObserver, unregisterDataSetObserver, updateDouble, updateFloat, updateInt, updateLong, updateShort, updateString, updateToNull
[edit] Details
[edit] Public Constructors
[edit] public ArrayListCursor(String[ ] columnNames, ArrayList rows)
[edit] Public Methods
[edit] public int count()
Returns the numbers of rows in the cursor.
[edit] public boolean deleteRow()
Removes the row at the current cursor position from the underlying data store. After this method returns the cursor will be pointing to the row after the row that is deleted. This has the side effect of decrementing the result of count() by one.
[edit] public 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.
[edit] public double getDouble(int columnIndex)
Returns the value of the requested column as a double.
If the native content of that column is not numeric the result will be the result of passing the column value to Double.valueOf(x).
[edit] public float getFloat(int columnIndex)
Returns the value of the requested column as a float.
If the native content of that column is not numeric the result will be the result of passing the column value to Float.valueOf(x).
[edit] public int getInt(int columnIndex)
Returns the value of the requested column as an int.
If the native content of that column is not numeric the result will be the result of passing the column value to Integer.valueOf(x).
[edit] public long getLong(int columnIndex)
Returns the value of the requested column as a long.
If the native content of that column is not numeric the result will be the result of passing the column value to Long.valueOf(x).
[edit] public short getShort(int columnIndex)
Returns the value of the requested column as a short.
If the native content of that column is not numeric the result will be the result of passing the column value to Short.valueOf(x).
[edit] public String getString(int columnIndex)
Returns the value of the requested column as a String.
If the native content of that column is not text the result will be the result of passing the column value to String.valueOf(x).
[edit] public boolean isNull(int columnIndex)
Returns true if the value in the indicated column is null.
[edit] References
- Original documentation page for Android SDK build m5-rc15e - 14 apr 2008 17:27
