Class InvokeOrderGeneratorTask

java.lang.Object
ch.tocco.nice2.tasks.api.quartz.AbstractJob
ch.tocco.nice2.tasks.api.quartz.AbstractInterruptableJob
ch.tocco.nice2.optional.order.api.action.invoice.tasks.InvokeOrderGeneratorTask
All Implemented Interfaces:
org.quartz.InterruptableJob, org.quartz.Job
Direct Known Subclasses:
BillingPositionInvoiceActionServiceImpl.BillingPositionInvokeOrderGeneratorTask, DefaultInvoiceActionServiceImpl.DefaultInvokeOrderGeneratorTask, DirectInvoiceActionServiceImpl.DirectInvokeOrderGeneratorTask

public abstract class InvokeOrderGeneratorTask extends AbstractInterruptableJob
Task that invokes the OrderGeneratorService for a selection of entities. Different contexts are used for every batch of entities to avoid high memory usage.

However before the selection can be split up into batches, the selection must be grouped by recipient so that the orders can be merged together within the same transaction.