/** * Returns Report Field if Report Field name is same as field. * * @param field Field * @return Report Field */ public ReportField getField(Field field) { for (ReportField rf : fieldList) { if (rf.getField().equals(field)) { return rf; } } return null; }
/** * Checks if Field already exists in database. * * @param field Field * @return Boolean true if exist, false if not. */ public boolean containsField(Field field) { for (ReportField rf : fieldList) { if (rf.getField().equals(field)) { return true; } } return false; }