类 IdGeneratorInterpreterImpl
- java.lang.Object
-
- org.hibernate.boot.internal.IdGeneratorInterpreterImpl
-
- 所有已实现的接口:
IdGeneratorStrategyInterpreter
public class IdGeneratorInterpreterImpl extends Object implements IdGeneratorStrategyInterpreter
The root (composition) IdGenerationTypeInterpreter.- 作者:
- Steve Ebersole
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 org.hibernate.boot.model.IdGeneratorStrategyInterpreter
IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext
-
-
构造器概要
构造器 构造器 说明 IdGeneratorInterpreterImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddInterpreterDelegate(IdGeneratorStrategyInterpreter delegate)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.voiddisableLegacyFallback()voidenableLegacyFallback()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
public String determineGeneratorName(javax.persistence.GenerationType generationType, IdGeneratorStrategyInterpreter.GeneratorNameDeterminationContext context)
从接口复制的说明:IdGeneratorStrategyInterpreterDetermine 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.- 指定者:
determineGeneratorName在接口中IdGeneratorStrategyInterpreter- 参数:
generationType- TheGeneratedValue.strategy()valuecontext- The context for resolution (method parameter object)- 返回:
- The
IdentifierGeneratorname (FQN, short name, etc)
-
interpretTableGenerator
public void interpretTableGenerator(javax.persistence.TableGenerator tableGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)从接口复制的说明:IdGeneratorStrategyInterpreterExtract the IdentifierGeneratorDefinition related to the given TableGenerator annotation- 指定者:
interpretTableGenerator在接口中IdGeneratorStrategyInterpreter- 参数:
tableGeneratorAnnotation- The annotationdefinitionBuilder- The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration
-
interpretSequenceGenerator
public void interpretSequenceGenerator(javax.persistence.SequenceGenerator sequenceGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)从接口复制的说明:IdGeneratorStrategyInterpreterExtract the IdentifierGeneratorDefinition related to the given SequenceGenerator annotation- 指定者:
interpretSequenceGenerator在接口中IdGeneratorStrategyInterpreter- 参数:
sequenceGeneratorAnnotation- The annotationdefinitionBuilder- The IdentifierGeneratorDefinition builder to which to apply any interpreted/extracted configuration
-
enableLegacyFallback
public void enableLegacyFallback()
-
disableLegacyFallback
public void disableLegacyFallback()
-
addInterpreterDelegate
public void addInterpreterDelegate(IdGeneratorStrategyInterpreter delegate)
-
-