接口 IdentifierGeneratorFactory
-
- 所有已知子接口:
MutableIdentifierGeneratorFactory
- 所有已知实现类:
DefaultIdentifierGeneratorFactory
public interface IdentifierGeneratorFactoryContract for a factory ofIdentifierGeneratorinstances.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 IdentifierGeneratorcreateIdentifierGenerator(String strategy, Type type, Properties config)Given a strategy, retrieve the appropriate identifier generator instance.DialectgetDialect()Get the dialect.ClassgetIdentifierGeneratorClass(String strategy)Retrieve the class that will be used as theIdentifierGeneratorfor the given strategy.voidsetDialect(Dialect dialect)已过时。The intention is that Dialect should be required to be specified up-front and it would then get ctor injected.
-
-
-
方法详细资料
-
getDialect
Dialect getDialect()
Get the dialect.- 返回:
- the dialect
-
setDialect
@Deprecated void setDialect(Dialect dialect)
已过时。The intention is that Dialect should be required to be specified up-front and it would then get ctor injected.Allow injection of the dialect to use.- 参数:
dialect- The dialect
-
createIdentifierGenerator
IdentifierGenerator createIdentifierGenerator(String strategy, Type type, Properties config)
Given a strategy, retrieve the appropriate identifier generator instance.- 参数:
strategy- The generation strategy.type- The mapping type for the identifier values.config- Any configuration properties given in the generator mapping.- 返回:
- The appropriate generator instance.
-
getIdentifierGeneratorClass
Class getIdentifierGeneratorClass(String strategy)
Retrieve the class that will be used as theIdentifierGeneratorfor the given strategy.- 参数:
strategy- The strategy- 返回:
- The generator class.
-
-