public abstract class AbstractQueryMacroHandler extends java.lang.Object implements QueryMacroHandler
| Modifier and Type | Field and Description |
|---|---|
protected int |
count |
protected io.jmix.core.security.CurrentAuthentication |
currentAuthentication |
protected java.util.Map<java.lang.String,java.lang.Class> |
expandedParamTypes |
protected java.util.regex.Pattern |
macroPattern |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractQueryMacroHandler(java.util.regex.Pattern macroPattern) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.String |
doExpand(java.lang.String macro) |
java.lang.String |
expandMacro(java.lang.String queryString)
Replaces macro with real JPQL code.
|
protected java.util.TimeZone |
getTimeZoneFromArgs(java.lang.String[] args,
int pos) |
void |
setCurrentAuthentication(io.jmix.core.security.CurrentAuthentication currentAuthentication) |
void |
setExpandedParamTypes(java.util.Map<java.lang.String,java.lang.Class> expandedParamTypes)
Sets expanded parameter types of the expanded query to the macro handler.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParams, replaceQueryParams, setQueryParamsprotected int count
protected final java.util.regex.Pattern macroPattern
protected java.util.Map<java.lang.String,java.lang.Class> expandedParamTypes
protected io.jmix.core.security.CurrentAuthentication currentAuthentication
protected AbstractQueryMacroHandler(java.util.regex.Pattern macroPattern)
@Autowired public void setCurrentAuthentication(io.jmix.core.security.CurrentAuthentication currentAuthentication)
public java.lang.String expandMacro(java.lang.String queryString)
QueryMacroHandlerexpandMacro in interface QueryMacroHandlerqueryString - source query stringprotected abstract java.lang.String doExpand(java.lang.String macro)
public void setExpandedParamTypes(java.util.Map<java.lang.String,java.lang.Class> expandedParamTypes)
QueryMacroHandlersetExpandedParamTypes in interface QueryMacroHandlerexpandedParamTypes - all expanded parameter types@Nullable
protected java.util.TimeZone getTimeZoneFromArgs(java.lang.String[] args,
int pos)