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

public class OrderByMethod extends Object implements freemarker.template.TemplateMethodModelEx
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] ```
  • Constructor Details

  • Method Details

    • exec

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