接口 IdGeneratorStrategyInterpreter
-
- 所有已知实现类:
IdGeneratorInterpreterImpl
public interface IdGeneratorStrategyInterpreterStrategy for interpreting identifier generator related information.- 作者:
- Steve Ebersole
-
-
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static interfaceIdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 StringdetermineGeneratorName(javax.persistence.GenerationType generationType, IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext context)Determine the name of the generator which should be used based on the GenerationType, returningnullto indicate that this interpreter did not have a match and that any additional resolutions should be performed.voidinterpretSequenceGenerator(javax.persistence.SequenceGenerator sequenceGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)Extract the IdentifierGeneratorDefinition related to the given SequenceGenerator annotationvoidinterpretTableGenerator(javax.persistence.TableGenerator tableGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)Extract the IdentifierGeneratorDefinition related to the given TableGenerator annotation
-
-
-
方法详细资料
-
determineGeneratorName
String determineGeneratorName(javax.persistence.GenerationType generationType, IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext context)
Determine the name of the generator which should be used based on the GenerationType, returningnullto indicate that this interpreter did not have a match and that any additional resolutions should be performed.- 参数:
generationType- TheGeneratedValue.strategy()valuecontext- The context for resolution (method parameter object)- 返回:
- The
IdentifierGeneratorname (FQN, short name, etc)
-
interpretTableGenerator
void interpretTableGenerator(javax.persistence.TableGenerator tableGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)Extract the IdentifierGeneratorDefinition related to the given TableGenerator annotation- 参数:
tableGeneratorAnnotation- The annotationdefinitionBuilder- The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration
-
interpretSequenceGenerator
void interpretSequenceGenerator(javax.persistence.SequenceGenerator sequenceGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)Extract the IdentifierGeneratorDefinition related to the given SequenceGenerator annotation- 参数:
sequenceGeneratorAnnotation- The annotationdefinitionBuilder- The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration
-
-