Code example for SQLiteDatabase

Methods: beginTransactiondeleteendTransactionsetTransactionSuccessful

0
     * @see de.dan_nrw.android.boobleftboobright.dao.IFavouriteDAO#remove(java.lang.String) 
     */ 
    @Override 
    public void remove(String id) {
    	SQLiteDatabase database = this.getDatabaseInstance();
    	database.beginTransaction();
    	 
    	try { 
    		database.delete(TABLE_NAME, String.format("%s = ?", WALLPAPER_ID), new String[] { id });
    		database.setTransactionSuccessful();
    	} 
    	finally { 
    		database.endTransaction();
    	} 
    } 
 
	/* (non-Javadoc) 
     * @see de.dan_nrw.android.boobleftboobright.dao.IFavouriteDAO#isFavourite(java.lang.String) 
     */ 
    @Override 
Contextual code suggestions in your IDE  Get Codota for Java