Lines Matching refs:db
69 public void onCreate(SQLiteDatabase db) { in onCreate() argument
71 db.execSQL("CREATE TABLE " + NAME_VALUE_TABLE + " (" + _ID + " INTEGER PRIMARY KEY," in onCreate()
76 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
91 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert() local
92 db.insert(tbName, VALUE, values); in insert()
110 SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query() local
111 Cursor c = db.query(tbName, projection, selection, selectionArgs, null, null, sortOrder); in query()
136 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update() local
137 int count = db.update(tbName, values, selection, selectionArgs); in update()
153 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete() local
154 int count = db.delete(tbName, selection, selectionArgs); in delete()