Code example for ContentValues

Methods: toString

0
	} 
 
	/** {@inheritDoc} */ 
	@Override 
	public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) {
		if (LOGV) Log.v(TAG, "update(uri=" + uri + ", values=" + values.toString() + ")");
		final SQLiteDatabase db = mOpenHelper.getWritableDatabase();
		final SelectionBuilder builder = buildSimpleSelection(uri);
		int retVal = builder.where(selection, selectionArgs).update(db, values);
		getContext().getContentResolver().notifyChange(uri, null);
		return retVal;
	} 
 
	/** {@inheritDoc} */ 
	@Override 
	public int delete(Uri uri, String selection, String[] selectionArgs) {
		if (LOGV) Log.v(TAG, "delete(uri=" + uri + ")");
		final SQLiteDatabase db = mOpenHelper.getWritableDatabase();
		final SelectionBuilder builder = buildSimpleSelection(uri);
		int retVal = builder.where(selection, selectionArgs).delete(db);
Stop searching for code, let great code find you!  Add Codota to your java IDE