Package org.hibernate.id
Interface CompositeNestedGeneratedValueGenerator.GenerationPlan
-
- All Superinterfaces:
ExportableProducer
- All Known Implementing Classes:
Component.ValueGenerationPlan
- Enclosing class:
- CompositeNestedGeneratedValueGenerator
public static interface CompositeNestedGeneratedValueGenerator.GenerationPlan extends ExportableProducer
Contract for performing the actual sub-value generation, usually injecting it into the determined context
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectexecute(SharedSessionContractImplementor session, Object incomingObject)Execute the value generation.SettergetInjector()Returns theinjectorfor the generated property.intgetPropertyIndex()Returns the index of the generated property.voidinitialize(SqlStringGenerationContext context)Initializes this instance, in particular pre-generates SQL as necessary.-
Methods inherited from interface org.hibernate.boot.model.relational.ExportableProducer
registerExportables
-
-
-
-
Method Detail
-
initialize
void initialize(SqlStringGenerationContext context)
Initializes this instance, in particular pre-generates SQL as necessary.This method is called after
ExportableProducer.registerExportables(Database), before first use.- Parameters:
context- A context to help generate SQL strings
-
execute
Object execute(SharedSessionContractImplementor session, Object incomingObject)
Execute the value generation.- Parameters:
session- The current sessionincomingObject- The entity for which we are generating id
-
getInjector
Setter getInjector()
- See Also:
getPropertyIndex()
-
getPropertyIndex
int getPropertyIndex()
Returns the index of the generated property. Used when theCompositeTypeis not mutable.- See Also:
getInjector()
-
-