Class CreateOrderRateTask
java.lang.Object
ch.tocco.nice2.optional.order.impl.service.CreateOrderRateTask
- All Implemented Interfaces:
OptionalTask<Tuple2<Integer, BigDecimal>, Entity>, PersistTask<Tuple2<Integer, BigDecimal>, Entity>
public class CreateOrderRateTask
extends Object
implements OptionalTask<Tuple2<Integer, BigDecimal>, Entity>
task that creates an Order_rate for an Order
-
Constructor Summary
ConstructorsConstructorDescriptionCreateOrderRateTask(TextResources textResources, Entity order, int paymentConditionDays, int periodicity, org.joda.time.LocalDate billingDate) -
Method Summary
Modifier and TypeMethodDescriptiondoRun(Tuple2<Integer, BigDecimal> values, CommandContext commandContext) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface OptionalTask
runMethods inherited from interface PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
CreateOrderRateTask
public CreateOrderRateTask(TextResources textResources, Entity order, int paymentConditionDays, int periodicity, org.joda.time.LocalDate billingDate)
-
-
Method Details
-
doRun
public Entity doRun(Tuple2<Integer, BigDecimal> values, CommandContext commandContext) throws PersistException, InterruptedException - Specified by:
doRunin interfaceOptionalTask<Tuple2<Integer, BigDecimal>, Entity>- Throws:
PersistExceptionInterruptedException
-