Class GetOneRelatedEntity
java.lang.Object
ch.tocco.nice2.dms.api.tree.persisttask.GetOneRelatedEntity
- All Implemented Interfaces:
PersistTask<Entity,
Entity>
Task that resolves a set of optional relations to find a related entity.
-
Constructor Summary
ConstructorDescriptionGetOneRelatedEntity
(Iterable<String> relationNames) Task that resolves a set of optional relations to find a single related entity. -
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
-
GetOneRelatedEntity
Task that resolves a set of optional relations to find a single related entity.- Parameters:
relationNames
- a set of relation names
-
-
Method Details
-
run
public Entity run(Optional<Entity> a, CommandContext commandContext) throws PersistException, InterruptedException - Specified by:
run
in interfacePersistTask<Entity,
Entity> - Throws:
PersistException
InterruptedException
-