use of com.haulmont.cuba.core.sys.QueryMacroHandler in project cuba by cuba-platform.
the class DataServiceQueryBuilder method replaceParamsInMacros.
protected void replaceParamsInMacros(Query query) {
Collection<QueryMacroHandler> handlers = AppBeans.getAll(QueryMacroHandler.class).values();
String modifiedQuery = query.getQueryString();
for (QueryMacroHandler handler : handlers) {
modifiedQuery = handler.replaceQueryParams(modifiedQuery, queryParams);
}
query.setQueryString(modifiedQuery);
}
Aggregations