Exemplo n.º 1
0
 private boolean hasBlobField(List<Field> fields) {
   for (Field field : fields) {
     if (field.getType().isBlob()) {
       return true;
     }
   }
   return false;
 }
 /**
  * Resolves correct task parameter type, based on the MDS field type.
  *
  * @param field MDS field
  * @return matching task parameter type
  */
 public static String resolveType(Field field) {
   Type type = field.getType();
   if (type.isCombobox()) {
     return resolveComboboxType(new ComboboxHolder(field));
   } else {
     String matchedType = TYPE_MAPPING.get(type.getDisplayName());
     return null != matchedType ? matchedType : UNKNOWN;
   }
 }