Package org.hibernate.id.factory
Interface IdentifierGeneratorFactory
-
- All Known Subinterfaces:
MutableIdentifierGeneratorFactory
public interface IdentifierGeneratorFactoryContract for a factory ofIdentifierGeneratorinstances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description IdentifierGeneratorcreateIdentifierGenerator(java.lang.String strategy, Type type, java.util.Properties config)Given a strategy, retrieve the appropriate identifier generator instance.DialectgetDialect()Get the dialect.java.lang.ClassgetIdentifierGeneratorClass(java.lang.String strategy)Retrieve the class that will be used as theIdentifierGeneratorfor the given strategy.voidsetDialect(Dialect dialect)Deprecated.The intention is that Dialect should be required to be specified up-front and it would then get ctor injected.
-
-
-
Method Detail
-
getDialect
Dialect getDialect()
Get the dialect.- Returns:
- the dialect
-
setDialect
@Deprecated void setDialect(Dialect dialect)
Deprecated.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.- Parameters:
dialect- The dialect
-
createIdentifierGenerator
IdentifierGenerator createIdentifierGenerator(java.lang.String strategy, Type type, java.util.Properties config)
Given a strategy, retrieve the appropriate identifier generator instance.- Parameters:
strategy- The generation strategy.type- The mapping type for the identifier values.config- Any configuration properties given in the generator mapping.- Returns:
- The appropriate generator instance.
-
getIdentifierGeneratorClass
java.lang.Class getIdentifierGeneratorClass(java.lang.String strategy)
Retrieve the class that will be used as theIdentifierGeneratorfor the given strategy.- Parameters:
strategy- The strategy- Returns:
- The generator class.
-
-