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)
CompositeNestedGeneratedValueGenerator.GenerationPlan
execute
in interface CompositeNestedGeneratedValueGenerator.GenerationPlan
session
- 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.GenerationPlan
PersistentIdentifierGenerator
by their
generatorKey
.registerPersistentGenerators
in interface CompositeNestedGeneratedValueGenerator.GenerationPlan
generatorMap
- The map of generators.Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.