Code example for SQLiteDatabase

Methods: update

0
	} 
	 
	public void setRecordingDescription(long id, String description) {
		ContentValues values = new ContentValues();
		values.put(RecordingColumn.RECORDING_DESCRIPTION.label, description);
		db.update(TABLE_RECORDINGS, values, recordingIdClause(id), null);
	} 
 
	public static String getString(Cursor cursor, Column column) {
		return getString(cursor, column.getLabel());
	} 
	 
	public static String getString(Cursor cursor, String column) {
		return cursor.getString(cursor.getColumnIndex(column));
	} 
	 
	public static long getLong(Cursor cursor, Column column) {
		return getLong(cursor, column.getLabel());
	} 
 
	public static long getLong(Cursor cursor, String column) {