Class GetEmptyRelationsTask
java.lang.Object
ch.tocco.nice2.entityoperation.api.persisttask.GetEmptyRelationsTask
-
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
-
GetEmptyRelationsTask
public GetEmptyRelationsTask()
-
-
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>>, Iterable<String>> - Parameters:
arg
- A Tuple2 that contains the entity and an Iterable of relation namescommandContext
- The command context- Returns:
- A set of all relation names that are not set
- Throws:
PersistException
-