Beispiel #1
0
  public List<Validations> getValidationType(String inputType, String mInstrc) {
    List<Validations> result = new ArrayList<Validations>();

    MeasurementTypeDao dao = SpringUtils.getBean(MeasurementTypeDao.class);
    List<MeasurementType> types = dao.findByTypeAndMeasuringInstruction(inputType, mInstrc);
    if (types.isEmpty()) {
      return result;
    }

    ValidationsDao vDao = SpringUtils.getBean(ValidationsDao.class);
    for (MeasurementType type : types) {
      Validations vs = vDao.find(ConversionUtils.fromIntString(type.getValidation()));
      result.add(vs);
    }
    return result;
  }