Class CreateWageTask
java.lang.Object
ch.tocco.nice2.optional.salary.api.tasks.CreateWageTask
- All Implemented Interfaces:
OptionalTask<WageValueProvider, Entity>, PersistTask<WageValueProvider, Entity>
creates a wage entity from the values provided by
WageValueProvider.
The Wage is only created if the Optionals from the methods WageValueProvider.getIncomePerHour(),
WageValueProvider.getSalaryType() and WageValueProvider.getQuantity() are present.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoRun(WageValueProvider wageValueProvider, 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
-
CreateWageTask
-
-
Method Details
-
doRun
public Entity doRun(WageValueProvider wageValueProvider, CommandContext commandContext) throws Exception - Specified by:
doRunin interfaceOptionalTask<WageValueProvider, Entity>- Throws:
Exception
-