Package io.jmix.data.impl.querymacro
Class DateAfterMacroHandler
java.lang.Object
io.jmix.data.impl.querymacro.AbstractQueryMacroHandler
io.jmix.data.impl.querymacro.DateAfterMacroHandler
- All Implemented Interfaces:
QueryMacroHandler
@Component("data_DateAfterQueryMacroHandler")
@Scope("prototype")
public class DateAfterMacroHandler
extends AbstractQueryMacroHandler
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final Pattern
protected static final Pattern
protected TimeSource
protected DateTimeTransformations
Fields inherited from class io.jmix.data.impl.querymacro.AbstractQueryMacroHandler
count, currentAuthentication, expandedParamTypes, macroPattern
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
replaceQueryParams
(String queryString, Map<String, Object> params) Replaces param names inqueryString
with its values from theparams
parameter.void
setQueryParams
(Map<String, Object> namedParameters) Sets parameters of the expanded query to the macro handler.Methods inherited from class io.jmix.data.impl.querymacro.AbstractQueryMacroHandler
expandMacro, getTimeZoneFromArgs, setCurrentAuthentication, setExpandedParamTypes
-
Field Details
-
MACRO_PATTERN
-
NOW_PARAM_PATTERN
-
transformations
-
timeSource
-
namedParameters
-
paramArgs
-
-
Constructor Details
-
DateAfterMacroHandler
public DateAfterMacroHandler()
-
-
Method Details
-
doExpand
- Specified by:
doExpand
in classAbstractQueryMacroHandler
-
setQueryParams
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
- Returns:
- all named parameters of the expanded query augmented with the macro parameters
-
replaceQueryParams
Description copied from interface:QueryMacroHandler
Replaces param names inqueryString
with its values from theparams
parameter. If macro is not found, the source query string is returned.- Returns:
- modified query string
-