Class EntityTemplateTasks.TemplateEntityFiller
java.lang.Object
ch.tocco.nice2.persist.entity.spi.template.EntityTemplateTasks.TemplateEntityFiller
- All Implemented Interfaces:
OptionalTask<TemplateEntity,
,TemplateEntity> PersistTask<TemplateEntity,
TemplateEntity>
- Enclosing class:
EntityTemplateTasks
public static class EntityTemplateTasks.TemplateEntityFiller
extends Object
implements OptionalTask<TemplateEntity,TemplateEntity>
A task that takes a template entity and sets all fields read from a concrete
base entity, given by its primary key. The modified template entity is returned.
-
Constructor Summary
ConstructorDescriptionTemplateEntityFiller
(Entity base, TemplateBlacklist templateBlacklist, boolean clearRelations) -
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
-
TemplateEntityFiller
public TemplateEntityFiller(Entity base, TemplateBlacklist templateBlacklist, boolean clearRelations)
-
-
Method Details
-
doRun
- Specified by:
doRun
in interfaceOptionalTask<TemplateEntity,
TemplateEntity> - Throws:
Exception
-