java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.methods.GroupByMethod
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

public class GroupByMethod extends Object implements freemarker.template.TemplateMethodModelEx
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")
  • Constructor Details

  • Method Details

    • exec

      public Object exec(List parameters) throws freemarker.template.TemplateModelException
      Specified by:
      exec in interface freemarker.template.TemplateMethodModel
      Specified by:
      exec in interface freemarker.template.TemplateMethodModelEx
      Throws:
      freemarker.template.TemplateModelException