Class TimeBetweenQueryMacroHandler

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

@Component("data_TimeBetweenQueryMacroHandler") @Scope("prototype") public class TimeBetweenQueryMacroHandler extends AbstractQueryMacroHandler
  • Field Details

  • Constructor Details

    • TimeBetweenQueryMacroHandler

      public TimeBetweenQueryMacroHandler()
  • 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
    • 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
    • replaceParamsInMacros

      protected String replaceParamsInMacros(String macros, Map<String,Object> params)
    • doExpand

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

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

      protected String getParam(String[] args, int idx, TimeZone timeZone)