boolean moveToLast(): moves the cursor to the lase row in the result set, returns false if the result set is empty.boolean moveToPrevious(): moves the cursor to the previous row in the result set, returns false if the cursor is past the first row.boolean moveToPosition(int position): moves the cursor to a certain row index within the boolean result set, returns false if the position is un-reachable.boolean moveToFirst(): moves the cursor to the first row in the result set, returns false if the result set is empty.boolean moveToNext(): moves the cursor by one record in the result set, returns false if moved past the last row in the result set.There are some common methods that you will use with cursors: Result sets of queries are returned in Cursor objects. String Order By by: A string Order By by clause.String Having: A string specifying HAVING clause.String Group by: A string specifying group by clause.String selection args: The parameters of the WHERE clause.String WHERE clause: where clause, if none pass null.String columns: The projection of the query, i.e., the columns to retrieve.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |