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
Nested Classes -
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING -
Constructor Summary
ConstructorsConstructorDescriptionGroupByMonthMethod(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
-