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
ConstructorsConstructorDescriptionValueGenerationPlan(BeforeExecutionGenerator generator, Setter injector, int propertyIndex) -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the generator for this generation planReturns theinjectorfor the generated property.intReturns the index of the generated property.voidinitialize(SqlStringGenerationContext context) Initializes this instance, in particular pre-generates SQL as necessary.voidregisterExportables(Database database) Register the contained exportable things to theDatabase
-
Constructor Details
-
ValueGenerationPlan
-
-
Method Details
-
getInjector
Description copied from interface:CompositeNestedGeneratedValueGenerator.GenerationPlan- Specified by:
getInjectorin interfaceCompositeNestedGeneratedValueGenerator.GenerationPlan- See Also:
-
getPropertyIndex
public int getPropertyIndex()Description copied from interface:CompositeNestedGeneratedValueGenerator.GenerationPlanReturns the index of the generated property. Used when theCompositeTypeis not mutable.- Specified by:
getPropertyIndexin interfaceCompositeNestedGeneratedValueGenerator.GenerationPlan- See Also:
-
getGenerator
Description copied from interface:CompositeNestedGeneratedValueGenerator.GenerationPlanRetrieve the generator for this generation plan- Specified by:
getGeneratorin interfaceCompositeNestedGeneratedValueGenerator.GenerationPlan
-
registerExportables
Description copied from interface:ExportableProducerRegister the contained exportable things to theDatabase- Specified by:
registerExportablesin interfaceExportableProducer- Parameters:
database- The database instance
-
initialize
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
-