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 Optional
s from the methods WageValueProvider.getIncomePerHour()
,
WageValueProvider.getSalaryType()
and WageValueProvider.getQuantity()
are present.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondoRun
(WageValueProvider wageValueProvider, 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
-
CreateWageTask
-
-
Method Details
-
doRun
public Entity doRun(WageValueProvider wageValueProvider, CommandContext commandContext) throws Exception - Specified by:
doRun
in interfaceOptionalTask<WageValueProvider,
Entity> - Throws:
Exception
-