Class GroupByMethod
java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.methods.GroupByMethod
- All Implemented Interfaces:
freemarker.template.TemplateMethodModel
,freemarker.template.TemplateMethodModelEx
,freemarker.template.TemplateModel
groups a sequence of EntityHashModel by a path, given as a String, and orders them by an order query, also given as a String
usage: groupBy(data, "relAddress_c.relAddress_status.unique_id", "sorting desc, query")
-
Nested Class Summary
-
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
ConstructorDescriptionGroupByMethod
(ContextManager contextManager, PersistenceService persistenceService) -
Method Summary
-
Constructor Details
-
GroupByMethod
-
-
Method Details
-
exec
- Specified by:
exec
in interfacefreemarker.template.TemplateMethodModel
- Specified by:
exec
in interfacefreemarker.template.TemplateMethodModelEx
- Throws:
freemarker.template.TemplateModelException
-