Package org.hibernate.mapping
Class Component.ValueGenerationPlan
- java.lang.Object
-
- org.hibernate.mapping.Component.ValueGenerationPlan
-
- All Implemented Interfaces:
ExportableProducer,CompositeNestedGeneratedValueGenerator.GenerationPlan
- Enclosing class:
- Component
public static class Component.ValueGenerationPlan extends Object implements CompositeNestedGeneratedValueGenerator.GenerationPlan
-
-
Constructor Summary
Constructors Constructor Description ValueGenerationPlan(IdentifierGenerator subGenerator, Setter injector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(SharedSessionContractImplementor session, Object incomingObject, Object injectionContext)Execute the value generation.voidinitialize(SqlStringGenerationContext context)Initializes this instance, in particular pre-generates SQL as necessary.voidregisterExportables(Database database)Register the contained exportable things to theDatabase
-
-
-
Constructor Detail
-
ValueGenerationPlan
public ValueGenerationPlan(IdentifierGenerator subGenerator, Setter injector)
-
-
Method Detail
-
execute
public void execute(SharedSessionContractImplementor session, Object incomingObject, Object injectionContext)
Description copied from interface:CompositeNestedGeneratedValueGenerator.GenerationPlanExecute the value generation.- Specified by:
executein interfaceCompositeNestedGeneratedValueGenerator.GenerationPlan- Parameters:
session- The current sessionincomingObject- The entity for which we are generating idinjectionContext- The context into which the generated value can be injected
-
registerExportables
public void registerExportables(Database database)
Description copied from interface:ExportableProducerRegister the contained exportable things to theDatabase- Specified by:
registerExportablesin interfaceExportableProducer- Parameters:
database- The database instance
-
initialize
public void initialize(SqlStringGenerationContext context)
Description copied from interface:CompositeNestedGeneratedValueGenerator.GenerationPlanInitializes this instance, in particular pre-generates SQL as necessary.This method is called after
ExportableProducer.registerExportables(Database), before first use.- Specified by:
initializein interfaceCompositeNestedGeneratedValueGenerator.GenerationPlan- Parameters:
context- A context to help generate SQL strings
-
-