Package org.hibernate.boot.model
Interface IdGeneratorStrategyInterpreter
-
public interface IdGeneratorStrategyInterpreter
Strategy for interpreting identifier generator related information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.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
java.lang.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.- Parameters:
generationType
- TheGeneratedValue.strategy()
valuecontext
- The context for resolution (method parameter object)- Returns:
- The
IdentifierGenerator
name (FQN, short name, etc)
-
interpretTableGenerator
void interpretTableGenerator(TableGenerator tableGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)
Extract the IdentifierGeneratorDefinition related to the given TableGenerator annotation- Parameters:
tableGeneratorAnnotation
- The annotationdefinitionBuilder
- The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration
-
interpretSequenceGenerator
void interpretSequenceGenerator(SequenceGenerator sequenceGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)
Extract the IdentifierGeneratorDefinition related to the given SequenceGenerator annotation- Parameters:
sequenceGeneratorAnnotation
- The annotationdefinitionBuilder
- The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration
-
-