Code example for SQLiteDatabase

Methods: update

0
    int updateValues(Uri uri, ContentValues values, String selection, String[] selectionArgs, String table) {
        trace("Updating tabs on URI: " + uri);
 
        final SQLiteDatabase db = getWritableDatabase(uri);
 
        return db.update(table, values, selection, selectionArgs);
    } 
 
    int deleteValues(Uri uri, String selection, String[] selectionArgs, String table) {
        debug("Deleting tabs for URI: " + uri);
 
        final SQLiteDatabase db = getWritableDatabase(uri);
 
        return db.delete(table, selection, selectionArgs);
    } 
 
    @Override 
    public int bulkInsert(Uri uri, ContentValues[] values) {
        if (values == null)
            return 0; 
Contextual code suggestions in your IDE  Get Codota for Java