use of org.openmrs.module.reporting.data.converter.NullValueConverter in project openmrs-module-pihcore by PIH.
the class DataConverterLibrary method getLastDataSetItemConverter.
public DataConverter getLastDataSetItemConverter(String columnName, Object nullReplacement) {
ChainedConverter ret = new ChainedConverter();
ret.addConverter(new ListConverter(TimeQualifier.LAST, 1, DataSetRow.class));
ret.addConverter(new DataSetRowConverter(columnName));
if (nullReplacement != null) {
ret.addConverter(new NullValueConverter(nullReplacement));
}
return ret;
}
use of org.openmrs.module.reporting.data.converter.NullValueConverter in project openmrs-module-pihcore by PIH.
the class DataConverterLibrary method getDataSetItemConverter.
public DataConverter getDataSetItemConverter(Integer index, String columnName, Object nullReplacement) {
ChainedConverter ret = new ChainedConverter();
ret.addConverter(new ListConverter(index, DataSetRow.class));
ret.addConverter(new DataSetRowConverter(columnName));
if (nullReplacement != null) {
ret.addConverter(new NullValueConverter(nullReplacement));
}
return ret;
}
Aggregations