Package org.hibernate.boot.internal
Class IdGeneratorInterpreterImpl
- java.lang.Object
-
- org.hibernate.boot.internal.IdGeneratorInterpreterImpl
-
- All Implemented Interfaces:
IdGeneratorStrategyInterpreter
public class IdGeneratorInterpreterImpl extends Object implements IdGeneratorStrategyInterpreter
The root (composition) IdGenerationTypeInterpreter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.boot.model.IdGeneratorStrategyInterpreter
IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext
-
-
Constructor Summary
Constructors Constructor Description IdGeneratorInterpreterImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInterpreterDelegate(IdGeneratorStrategyInterpreter delegate)
String
determineGeneratorName(GenerationType generationType, IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext context)
Determine the name of the generator which should be used based on the GenerationType, returningnull
to indicate that this interpreter did not have a match and that any additional resolutions should be performed.void
interpretSequenceGenerator(SequenceGenerator sequenceGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)
Extract the IdentifierGeneratorDefinition related to the given SequenceGenerator annotationvoid
interpretTableGenerator(TableGenerator tableGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)
Extract the IdentifierGeneratorDefinition related to the given TableGenerator annotation
-
-
-
Method Detail
-
determineGeneratorName
public String determineGeneratorName(GenerationType generationType, IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext context)
Description copied from interface:IdGeneratorStrategyInterpreter
Determine the name of the generator which should be used based on the GenerationType, returningnull
to indicate that this interpreter did not have a match and that any additional resolutions should be performed.- Specified by:
determineGeneratorName
in interfaceIdGeneratorStrategyInterpreter
- Parameters:
generationType
- TheGeneratedValue.strategy()
valuecontext
- The context for resolution (method parameter object)- Returns:
- The
IdentifierGenerator
name (FQN, short name, etc)
-
interpretTableGenerator
public void interpretTableGenerator(TableGenerator tableGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)
Description copied from interface:IdGeneratorStrategyInterpreter
Extract the IdentifierGeneratorDefinition related to the given TableGenerator annotation- Specified by:
interpretTableGenerator
in interfaceIdGeneratorStrategyInterpreter
- Parameters:
tableGeneratorAnnotation
- The annotationdefinitionBuilder
- The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration
-
interpretSequenceGenerator
public void interpretSequenceGenerator(SequenceGenerator sequenceGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)
Description copied from interface:IdGeneratorStrategyInterpreter
Extract the IdentifierGeneratorDefinition related to the given SequenceGenerator annotation- Specified by:
interpretSequenceGenerator
in interfaceIdGeneratorStrategyInterpreter
- Parameters:
sequenceGeneratorAnnotation
- The annotationdefinitionBuilder
- The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration
-
addInterpreterDelegate
public void addInterpreterDelegate(IdGeneratorStrategyInterpreter delegate)
-
-