public static class Component.ValueGenerationPlan extends java.lang.Object implements CompositeNestedGeneratedValueGenerator.GenerationPlan
Constructor and Description |
---|
Component.ValueGenerationPlan(java.lang.String propertyName,
IdentifierGenerator subGenerator,
Setter injector) |
Modifier and Type | Method and Description |
---|---|
void |
execute(SessionImplementor session,
java.lang.Object incomingObject,
java.lang.Object injectionContext)
Execute the value generation.
|
void |
registerPersistentGenerators(java.util.Map generatorMap)
Register any sub generators which implement
PersistentIdentifierGenerator by their
generatorKey . |
public Component.ValueGenerationPlan(java.lang.String propertyName, IdentifierGenerator subGenerator, Setter injector)
public void execute(SessionImplementor session, java.lang.Object incomingObject, java.lang.Object injectionContext)
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(java.util.Map generatorMap)
CompositeNestedGeneratedValueGenerator.GenerationPlan
PersistentIdentifierGenerator
by their
generatorKey
.registerPersistentGenerators
in interface CompositeNestedGeneratedValueGenerator.GenerationPlan
generatorMap
- The map of generators.Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.