public interface IdGeneratorStrategyInterpreter
Modifier and Type | Interface and Description |
---|---|
static interface |
IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
determineGeneratorName(javax.persistence.GenerationType generationType,
IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext context)
Determine the name of the generator which should be used based on the
GenerationType, returning
null to indicate that this interpreter
did not have a match and that any additional resolutions should be performed. |
void |
interpretSequenceGenerator(javax.persistence.SequenceGenerator sequenceGeneratorAnnotation,
IdentifierGeneratorDefinition.Builder definitionBuilder)
Extract the IdentifierGeneratorDefinition related to the given SequenceGenerator annotation
|
void |
interpretTableGenerator(javax.persistence.TableGenerator tableGeneratorAnnotation,
IdentifierGeneratorDefinition.Builder definitionBuilder)
Extract the IdentifierGeneratorDefinition related to the given TableGenerator annotation
|
java.lang.String determineGeneratorName(javax.persistence.GenerationType generationType, IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext context)
null
to indicate that this interpreter
did not have a match and that any additional resolutions should be performed.generationType
- The GeneratedValue.strategy()
valuecontext
- The context for resolution (method parameter object)void interpretTableGenerator(javax.persistence.TableGenerator tableGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)
tableGeneratorAnnotation
- The annotationdefinitionBuilder
- The IdentifierGeneratorDefinition builder to which to apply
any interpreted/extracted configurationvoid interpretSequenceGenerator(javax.persistence.SequenceGenerator sequenceGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)
sequenceGeneratorAnnotation
- The annotationdefinitionBuilder
- The IdentifierGeneratorDefinition builder to which to apply
any interpreted/extracted configurationCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.