public static class Component.ValueGenerationPlan extends Object implements CompositeNestedGeneratedValueGenerator.GenerationPlan
Constructor and Description |
---|
ValueGenerationPlan(IdentifierGenerator subGenerator,
Setter injector) |
Modifier and Type | Method and Description |
---|---|
void |
execute(SharedSessionContractImplementor session,
Object incomingObject,
Object injectionContext)
Execute the value generation.
|
void |
initialize(SqlStringGenerationContext context)
Initializes this instance, in particular pre-generates SQL as necessary.
|
void |
registerExportables(Database database)
Register the contained exportable things to the
Database |
public ValueGenerationPlan(IdentifierGenerator subGenerator, Setter injector)
public void execute(SharedSessionContractImplementor 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 registerExportables(Database database)
ExportableProducer
Database
registerExportables
in interface ExportableProducer
database
- The database instancepublic void initialize(SqlStringGenerationContext context)
CompositeNestedGeneratedValueGenerator.GenerationPlan
This method is called after ExportableProducer.registerExportables(Database)
, before first use.
initialize
in interface CompositeNestedGeneratedValueGenerator.GenerationPlan
context
- A context to help generate SQL stringsCopyright © 2001-2021 Red Hat, Inc. All Rights Reserved.