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
FieldsModifier and TypeFieldDescriptionprotected intprotected CurrentAuthenticationprotected final Pattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringexpandMacro(String queryString) Replaces macro with real JPQL code.protected TimeZonegetTimeZoneFromArgs(String[] args, int pos) voidsetCurrentAuthentication(CurrentAuthentication currentAuthentication) voidsetExpandedParamTypes(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, waitMethods 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:QueryMacroHandlerReplaces macro with real JPQL code. If macro is not found, the source query string is returned.- Specified by:
expandMacroin interfaceQueryMacroHandler- Parameters:
queryString- source query string- Returns:
- query string with macros replaced
-
doExpand
-
setExpandedParamTypes
Description copied from interface:QueryMacroHandlerSets expanded parameter types of the expanded query to the macro handler.- Specified by:
setExpandedParamTypesin interfaceQueryMacroHandler- Parameters:
expandedParamTypes- all expanded parameter types
-
getTimeZoneFromArgs
-