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
ConstructorDescriptionCreateOrderRateTask
(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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.OptionalTask
run
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.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:
doRun
in interfaceOptionalTask<Tuple2<Integer,
BigDecimal>, Entity> - Throws:
PersistException
InterruptedException
-