public static class Component.ValueGenerationPlan extends Object implements CompositeNestedGeneratedValueGenerator.GenerationPlan
| Constructor and Description |
|---|
Component.ValueGenerationPlan(String propertyName,
IdentifierGenerator subGenerator,
Setter injector) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(SessionImplementor session,
Object incomingObject,
Object injectionContext)
Execute the value generation.
|
void |
registerPersistentGenerators(Map generatorMap)
Register any sub generators which implement
PersistentIdentifierGenerator by their
generatorKey. |
public Component.ValueGenerationPlan(String propertyName, IdentifierGenerator subGenerator, Setter injector)
public void execute(SessionImplementor session, Object incomingObject, Object injectionContext)
execute in interface CompositeNestedGeneratedValueGenerator.GenerationPlansession - The current sessionincomingObject - The entity for which we are generating idinjectionContext - The context into which the generated value can be injectedpublic void registerPersistentGenerators(Map generatorMap)
CompositeNestedGeneratedValueGenerator.GenerationPlanPersistentIdentifierGenerator by their
generatorKey.registerPersistentGenerators in interface CompositeNestedGeneratedValueGenerator.GenerationPlangeneratorMap - The map of generators.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.