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 SummaryFieldsModifier and TypeFieldDescriptionprotected intprotected CurrentAuthenticationprotected final Pattern
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.data.impl.QueryMacroHandlergetParams, replaceQueryParams, setQueryParams
- 
Field Details- 
countprotected int count
- 
macroPattern
- 
expandedParamTypes
- 
currentAuthentication
 
- 
- 
Constructor Details- 
AbstractQueryMacroHandler
 
- 
- 
Method Details- 
setCurrentAuthentication
- 
expandMacroDescription copied from interface:QueryMacroHandlerReplaces macro with real JPQL code. If macro is not found, the source query string is returned.- Specified by:
- expandMacroin interface- QueryMacroHandler
- Parameters:
- queryString- source query string
- Returns:
- query string with macros replaced
 
- 
doExpand
- 
setExpandedParamTypesDescription copied from interface:QueryMacroHandlerSets expanded parameter types of the expanded query to the macro handler.- Specified by:
- setExpandedParamTypesin interface- QueryMacroHandler
- Parameters:
- expandedParamTypes- all expanded parameter types
 
- 
getTimeZoneFromArgs
 
-