Class GetEmptyFieldsAndRelationsTask
java.lang.Object
ch.tocco.nice2.entityoperation.api.persisttask.GetEmptyFieldsAndRelationsTask
-
Constructor Summary
Constructors -
Method Summary
Methods 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
-
GetEmptyFieldsAndRelationsTask
public GetEmptyFieldsAndRelationsTask()
-
-
Method Details
-
run
public Set<String> run(Optional<Tuple2<Entity, Iterable<String>>> arg, CommandContext commandContext) throws Exception- Specified by:
runin interfacePersistTask<Tuple2<Entity,Iterable<String>>, Set<String>> - Parameters:
arg- A Tuple2 that contains the entity and an Iterable of field and relation namescommandContext- The command context- Returns:
- A set of all field and relation names that are not set
- Throws:
Exception
-