@Component(value="cuba_DateAfterQueryMacroHandler") @Scope(value="prototype") public class DateAfterMacroHandler extends AbstractQueryMacroHandler
Constructor and Description |
---|
DateAfterMacroHandler() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getParams() |
java.lang.String |
replaceQueryParams(java.lang.String queryString,
java.util.Map<java.lang.String,java.lang.Object> params)
Replaces param names in
queryString with its values from the params parameter. |
void |
setQueryParams(java.util.Map<java.lang.String,java.lang.Object> namedParameters)
Sets parameters of the expanded query to the macro handler.
|
expandMacro
public void setQueryParams(java.util.Map<java.lang.String,java.lang.Object> namedParameters)
QueryMacroHandler
namedParameters
- all named parameters of the expanded querypublic java.util.Map<java.lang.String,java.lang.Object> getParams()
public java.lang.String replaceQueryParams(java.lang.String queryString, java.util.Map<java.lang.String,java.lang.Object> params)
QueryMacroHandler
queryString
with its values from the params
parameter.
If macro is not found, the source query string is returned.