Class SummarizeVoucherMethod

java.lang.Object
ch.tocco.nice2.optional.finance.impl.report.postingvoucher.SummarizeVoucherMethod
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

public class SummarizeVoucherMethod extends Object implements freemarker.template.TemplateMethodModelEx
  • Field Summary

    Fields inherited from interface freemarker.template.TemplateModel

    NOTHING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    exec(List arguments)
    Each voucher is converted to plain beans as soon as it is read from the sequence: the base data of a report may be a MemoryEfficientLazyEntityList, which closes the context of a page when the next page is loaded, so a voucher (and its lazy relations) cannot be accessed after the iteration has moved on.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SummarizeVoucherMethod

      public SummarizeVoucherMethod(BusinessUnitManager businessUnitManager)
  • Method Details

    • exec

      public Object exec(List arguments) throws freemarker.template.TemplateModelException
      Each voucher is converted to plain beans as soon as it is read from the sequence: the base data of a report may be a MemoryEfficientLazyEntityList, which closes the context of a page when the next page is loaded, so a voucher (and its lazy relations) cannot be accessed after the iteration has moved on.
      Specified by:
      exec in interface freemarker.template.TemplateMethodModel
      Specified by:
      exec in interface freemarker.template.TemplateMethodModelEx
      Throws:
      freemarker.template.TemplateModelException