Class GetEmptyFieldsTask
java.lang.Object
ch.tocco.nice2.entityoperation.api.persisttask.GetEmptyFieldsTask
-
Constructor Summary
-
Method Summary
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.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
GetEmptyFieldsTask
public GetEmptyFieldsTask()
-
-
Method Details
-
run
public Set<String> run(Optional<Tuple2<Entity, Iterable<String>>> arg, CommandContext commandContext) throws PersistException- Specified by:
run
in interfacePersistTask<Tuple2<Entity,
Iterable<String>>, Set<String>> - Parameters:
arg
- A Tuple2 that contains the entity and an Iterable of field namescommandContext
- The command context- Returns:
- A set of all field names that are not set
- Throws:
PersistException
-