Class EntityTemplateTasks.TemplateEnityCreator
java.lang.Object
ch.tocco.nice2.persist.entity.spi.template.EntityTemplateTasks.TemplateEnityCreator
- All Implemented Interfaces:
OptionalTask<Tuple2<EntityModel,
,String>, TemplateEntity> PersistTask<Tuple2<EntityModel,
String>, TemplateEntity>
- Enclosing class:
EntityTemplateTasks
public static class EntityTemplateTasks.TemplateEnityCreator
extends Object
implements OptionalTask<Tuple2<EntityModel,String>,TemplateEntity>
Task that creates a new empty template entity (entity of model `Entity_template`). The
input is the base entity model and the id for the new template.
-
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.OptionalTask
run
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
-
TemplateEnityCreator
-
-
Method Details
-
doRun
- Specified by:
doRun
in interfaceOptionalTask<Tuple2<EntityModel,
String>, TemplateEntity> - Throws:
Exception
-