Class TimeTodayQueryMacroHandler

java.lang.Object
io.jmix.data.impl.querymacro.AbstractQueryMacroHandler
io.jmix.data.impl.querymacro.TimeTodayQueryMacroHandler
All Implemented Interfaces:
QueryMacroHandler

@Component("data_TimeTodayQueryMacroHandler") @Scope("prototype") public class TimeTodayQueryMacroHandler extends AbstractQueryMacroHandler
  • Field Details

  • Constructor Details

    • TimeTodayQueryMacroHandler

      public TimeTodayQueryMacroHandler()
  • Method Details

    • setQueryParams

      public void setQueryParams(Map<String,Object> namedParameters)
      Description copied from interface: QueryMacroHandler
      Sets parameters of the expanded query to the macro handler.
      Parameters:
      namedParameters - all named parameters of the expanded query
    • getParams

      public Map<String,Object> getParams()
      Returns:
      all named parameters of the expanded query augmented with the macro parameters
    • replaceQueryParams

      public String replaceQueryParams(String queryString, Map<String,Object> params)
      Description copied from interface: QueryMacroHandler
      Replaces param names in queryString with its values from the params parameter. If macro is not found, the source query string is returned.
      Returns:
      modified query string
    • doExpand

      protected String doExpand(String macro)
      Specified by:
      doExpand in class AbstractQueryMacroHandler