Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * 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;
 }