Class NewLecturerBookingTask
java.lang.Object
ch.tocco.nice2.persist.core.api.exec.AbstractPartitionedPersistTask<ch.tocco.nice2.optional.event.impl.actions.masslecturerbooking.MassLecturerBookingArg,Entity,Entity>
ch.tocco.nice2.optional.event.impl.actions.masslecturerbooking.NewLecturerBookingTask
- All Implemented Interfaces:
PersistTask<Iterable<ch.tocco.nice2.optional.event.impl.actions.masslecturerbooking.MassLecturerBookingArg>,Iterable<Entity>>
public class NewLecturerBookingTask
extends AbstractPartitionedPersistTask<ch.tocco.nice2.optional.event.impl.actions.masslecturerbooking.MassLecturerBookingArg,Entity,Entity>
-
Constructor Summary
ConstructorsConstructorDescriptionNewLecturerBookingTask(EntityDefaultValueService entityDefaultValueService, Consumer<ch.tocco.nice2.optional.event.impl.actions.masslecturerbooking.MassLecturerBookingArg> progress, String lecturerStatus, List<String> relationsToCopy) -
Method Summary
Modifier and TypeMethodDescriptionCreate a function that creates an instance of Z.run(Optional<Iterable<ch.tocco.nice2.optional.event.impl.actions.masslecturerbooking.MassLecturerBookingArg>> args, CommandContext ctx) Methods inherited from class ch.tocco.nice2.persist.core.api.exec.AbstractPartitionedPersistTask
getTaskData, partition, partition, partitionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
NewLecturerBookingTask
public NewLecturerBookingTask(EntityDefaultValueService entityDefaultValueService, Consumer<ch.tocco.nice2.optional.event.impl.actions.masslecturerbooking.MassLecturerBookingArg> progress, String lecturerStatus, List<String> relationsToCopy)
-
-
Method Details
-
createTaskData
Description copied from class:AbstractPartitionedPersistTaskCreate a function that creates an instance of Z. This function is called once for each context and should be used to load entities (or otherContextrelated objects) which are used in every iteration.- Specified by:
createTaskDatain classAbstractPartitionedPersistTask<ch.tocco.nice2.optional.event.impl.actions.masslecturerbooking.MassLecturerBookingArg,Entity, Entity>
-
run
@Nullable public @Nullable Iterable<Entity> run(Optional<Iterable<ch.tocco.nice2.optional.event.impl.actions.masslecturerbooking.MassLecturerBookingArg>> args, CommandContext ctx) throws Exception - Throws:
Exception
-