Code example for Field

Methods: getLong

0
			SQLiteDatabase database = databaseHelper.getWritableDatabase();
 
			String id = null;
 
			try { 
				id = String.valueOf(field.getLong(object));
			} catch (Exception ex) {
				Utils.handleException(ex);
			} 
 
			return database.delete(tableName, "rowid=?", new String[] { id });
		} else { 
			throw new IllegalArgumentException(
				"You cannot use this method to delete a non IDable class"); 
		} 
	} 
 
	/** 
	* Removes all objects from the repository. 
	* 
	* @throws FloggyException Exception thrown if an error occurs while removing