Package io.jmix.data.impl.querymacro
Class AbstractQueryMacroHandler
java.lang.Object
io.jmix.data.impl.querymacro.AbstractQueryMacroHandler
- All Implemented Interfaces:
QueryMacroHandler
- Direct Known Subclasses:
DateAfterMacroHandler
,DateBeforeMacroHandler
,DateEqualsMacroHandler
,EnumQueryMacroHandler
,TimeBetweenQueryMacroHandler
,TimeTodayQueryMacroHandler
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected CurrentAuthentication
protected final Pattern
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
expandMacro
(String queryString) Replaces macro with real JPQL code.protected TimeZone
getTimeZoneFromArgs
(String[] args, int pos) void
setCurrentAuthentication
(CurrentAuthentication currentAuthentication) void
setExpandedParamTypes
(Map<String, Class> expandedParamTypes) Sets expanded parameter types of the expanded query to the macro handler.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.data.impl.QueryMacroHandler
getParams, replaceQueryParams, setQueryParams
-
Field Details
-
count
protected int count -
macroPattern
-
expandedParamTypes
-
currentAuthentication
-
-
Constructor Details
-
AbstractQueryMacroHandler
-
-
Method Details
-
setCurrentAuthentication
-
expandMacro
Description copied from interface:QueryMacroHandler
Replaces macro with real JPQL code. If macro is not found, the source query string is returned.- Specified by:
expandMacro
in interfaceQueryMacroHandler
- Parameters:
queryString
- source query string- Returns:
- query string with macros replaced
-
doExpand
-
setExpandedParamTypes
Description copied from interface:QueryMacroHandler
Sets expanded parameter types of the expanded query to the macro handler.- Specified by:
setExpandedParamTypes
in interfaceQueryMacroHandler
- Parameters:
expandedParamTypes
- all expanded parameter types
-
getTimeZoneFromArgs
-