use of io.jmix.ui.entity.JpqlFilterCondition in project jmix by jmix-framework.
the class JpqlFilterConverter method convertToModel.
@Override
public JpqlFilterCondition convertToModel(JpqlFilter jpqlFilter) {
JpqlFilterCondition condition = super.convertToModel(jpqlFilter);
condition.setCaption(jpqlFilter.getCaption());
condition.setLocalizedCaption(getLocalizedModelCaption(jpqlFilter));
condition.setCaptionPosition(jpqlFilter.getCaptionPosition());
condition.setRequired(jpqlFilter.isRequired());
condition.setParameterName(jpqlFilter.getParameterName());
condition.setParameterClass(jpqlFilter.getParameterClass().getName());
condition.setWhere(jpqlFilter.getWhere());
condition.setJoin(jpqlFilter.getJoin());
condition.setHasInExpression(jpqlFilter.hasInExpression());
FilterValueComponent valueComponent = convertValueComponentToModel(jpqlFilter);
String modelDefaultValue = convertDefaultValueToModel(jpqlFilter);
valueComponent.setDefaultValue(modelDefaultValue);
condition.setValueComponent(valueComponent);
return condition;
}
Aggregations