Package io.jmix.data.impl.querymacro
Class DateEqualsMacroHandler
java.lang.Object
io.jmix.data.impl.querymacro.AbstractQueryMacroHandler
io.jmix.data.impl.querymacro.DateEqualsMacroHandler
- All Implemented Interfaces:
QueryMacroHandler
@Component("data_DateEqualsQueryMacroHandler")
@Scope("prototype")
public class DateEqualsMacroHandler
extends AbstractQueryMacroHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Patternprotected static final Patternprotected List<MacroArgsDateEquals>protected TimeSourceprotected DateTimeTransformationsFields inherited from class io.jmix.data.impl.querymacro.AbstractQueryMacroHandler
count, currentAuthentication, expandedParamTypes, macroPattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringreplaceQueryParams(String queryString, Map<String, Object> params) Replaces param names inqueryStringwith its values from theparamsparameter.voidsetQueryParams(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
-
DateEqualsMacroHandler
public DateEqualsMacroHandler()
-
-
Method Details
-
setQueryParams
Description copied from interface:QueryMacroHandlerSets parameters of the expanded query to the macro handler.- Parameters:
namedParameters- all named parameters of the expanded query
-
doExpand
- Specified by:
doExpandin classAbstractQueryMacroHandler
-
getParams
- Returns:
- all named parameters of the expanded query augmented with the macro parameters
-
replaceQueryParams
Description copied from interface:QueryMacroHandlerReplaces param names inqueryStringwith its values from theparamsparameter. If macro is not found, the source query string is returned.- Returns:
- modified query string
-