Class GroupByMonthMethod
java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.methods.GroupByMonthMethod
- All Implemented Interfaces:
freemarker.template.TemplateMethodModel
,freemarker.template.TemplateMethodModelEx
,freemarker.template.TemplateModel
groups a sequence of EntityHashModel by a selected month-field and order the groups ascending or descending
usage: groupByMonth(data, "relDonation.receipt_date", "desc") (for asc-ordering, third param isn't needed)
-
Nested Class Summary
-
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
ConstructorDescriptionGroupByMonthMethod
(QueryBuilderFactory queryBuilderFactory, Context context, PersistenceService persistenceService, ContextManager contextManager) -
Method Summary
-
Constructor Details
-
GroupByMonthMethod
public GroupByMonthMethod(QueryBuilderFactory queryBuilderFactory, Context context, PersistenceService persistenceService, ContextManager contextManager)
-
-
Method Details
-
exec
- Specified by:
exec
in interfacefreemarker.template.TemplateMethodModel
- Specified by:
exec
in interfacefreemarker.template.TemplateMethodModelEx
- Throws:
freemarker.template.TemplateModelException
-