Code example for SQLiteDatabase

Methods: insertOrThrow

0
		String whereClause = BookmarkDB.ID + " IN " + "(SELECT screen_settings FROM " + getBookmarkTableName() + " WHERE " + BookmarkDB.ID + " =  " + bookmark.getId() + ");";
		return (db.update("tbl_screen_settings", values, whereClause, null) == 1);		
	} 
 
	private boolean updateScreenSettings3G(SQLiteDatabase db, BookmarkBase bookmark) 
	{ 
		ContentValues values = new ContentValues();		
		fillScreenSettingsContentValues(bookmark.getAdvancedSettings().getScreen3G(), values);
		String whereClause = BookmarkDB.ID + " IN " + "(SELECT screen_3g FROM " + getBookmarkTableName() + " WHERE " + BookmarkDB.ID + " =  " + bookmark.getId() + ");";
		return (db.update("tbl_screen_settings", values, whereClause, null) == 1);		
	} 
 
	private long insertPerformanceFlags(SQLiteDatabase db, BookmarkBase.PerformanceFlags perfFlags) 
	{		 
		ContentValues values = new ContentValues();		
		fillPerformanceFlagsContentValues(perfFlags, values);
		return db.insertOrThrow("tbl_performance_flags", null, values);
	} 
 
	private boolean updatePerformanceFlags(SQLiteDatabase db, BookmarkBase bookmark) 
	{