Search in sources :

Example 1 with QueryMacroHandler

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);
}
Also used : QueryMacroHandler(com.haulmont.cuba.core.sys.QueryMacroHandler)

Aggregations

QueryMacroHandler (com.haulmont.cuba.core.sys.QueryMacroHandler)1