Android SqliteDatabase Command getTaskCursor(SQLiteDatabase database, String name)

Here you can find the source of getTaskCursor(SQLiteDatabase database, String name)

Description

get Task Cursor

Declaration

private static Cursor getTaskCursor(SQLiteDatabase database, String name) 

Method Source Code

//package com.java2s;

import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;

public class Main {
    private static final String TASK_TABLE_NAME = "task";
    private static final String NAME = "name";

    private static Cursor getTaskCursor(SQLiteDatabase database, String name) {
        String where = NAME + "='" + name + "'";

        Cursor cursor = database.query(TASK_TABLE_NAME, null, where, null,
                null, null, null);/*from www  .j  av  a2s . c o m*/
        return cursor;
    }
}

Related

  1. executeSqlStatementsInTx(SQLiteDatabase db, String[] statements)
  2. getListOfDays(SQLiteDatabase db)
  3. insertIntoTable(SQLiteDatabase database, String table, String[] data)
  4. selectFromTable(SQLiteDatabase db, String table, String sample)
  5. updateTable(SQLiteDatabase database, String table, String id, String[] newValues)
  6. SQLiteSanitize(String input)
  7. getFreeTourName(SQLiteDatabase db, String tourName)
  8. getNewTourPointPosition(SQLiteDatabase db, long tourId)
  9. getTourNames(SQLiteDatabase db)