Class QueryCountDirective

java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.directives.QueryCountDirective
All Implemented Interfaces:
Nice2TemplateDirective, TemplateIdentifiers, freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel

public class QueryCountDirective extends Object implements Nice2TemplateDirective, TemplateIdentifiers
Same as the query directive but does return the count instead of the entities.
  • Constructor Details

  • Method Details

    • execute

      public void execute(freemarker.core.Environment environment, Map params, freemarker.template.TemplateModel[] templateModels, freemarker.template.TemplateDirectiveBody body) throws freemarker.template.TemplateException, IOException
      Specified by:
      execute in interface freemarker.template.TemplateDirectiveModel
      Throws:
      freemarker.template.TemplateException
      IOException