Class OrderByMethod
java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.methods.OrderByMethod
- All Implemented Interfaces:
freemarker.template.TemplateMethodModel
,freemarker.template.TemplateMethodModelEx
,freemarker.template.TemplateModel
Can be used to order a list of entities by an order string.
The order string will be passed to the
QueryBuilder.orderBy(String)
method.
Example:
```
[#list orderBy(baseData, "my_date_field desc" as entity]
...
[/#list]
```-
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
OrderByMethod
-
-
Method Details
-
exec
@Nullable public @Nullable Object exec(List arguments) throws freemarker.template.TemplateModelException - Specified by:
exec
in interfacefreemarker.template.TemplateMethodModel
- Specified by:
exec
in interfacefreemarker.template.TemplateMethodModelEx
- Throws:
freemarker.template.TemplateModelException
-