Code example for ContentValues

0
package com.newsblur.domain; 
 
import android.content.ContentValues; 
import android.database.Cursor; 
import android.text.TextUtils; 
 
import com.newsblur.database.DatabaseConstants; 
 
public class Folder { 
	 
	public final ContentValues values = new ContentValues();
 
	public void setId(final String id) {
		values.put(DatabaseConstants.FOLDER_ID, id);
	} 
	 
	public void setName(final String name) {
		values.put(DatabaseConstants.FOLDER_NAME, name);
	} 
	 
	public String getId() {
		return values.getAsString(DatabaseConstants.FOLDER_ID);
	} 
	 
	public String getName() {
		return values.getAsString(DatabaseConstants.FOLDER_NAME);