org.hibernate.mapping
Class Component.ValueGenerationPlan
java.lang.Object
org.hibernate.mapping.Component.ValueGenerationPlan
- All Implemented Interfaces:
- CompositeNestedGeneratedValueGenerator.GenerationPlan
- Enclosing class:
- Component
public static class Component.ValueGenerationPlan
- extends Object
- implements CompositeNestedGeneratedValueGenerator.GenerationPlan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Component.ValueGenerationPlan
public Component.ValueGenerationPlan(String propertyName,
IdentifierGenerator subGenerator,
Setter injector)
execute
public void execute(SessionImplementor session,
Object incomingObject,
Object injectionContext)
- Execute the value generation.
- Specified by:
execute
in interface CompositeNestedGeneratedValueGenerator.GenerationPlan
- Parameters:
session
- The current sessionincomingObject
- The entity for which we are generating idinjectionContext
- The context into which the generated value can be injected
registerPersistentGenerators
public void registerPersistentGenerators(Map generatorMap)
- Description copied from interface:
CompositeNestedGeneratedValueGenerator.GenerationPlan
- Register any sub generators which implement
PersistentIdentifierGenerator
by their
generatorKey
.
- Specified by:
registerPersistentGenerators
in interface CompositeNestedGeneratedValueGenerator.GenerationPlan
- Parameters:
generatorMap
- The map of generators.
Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.