Package org.hibernate.id.factory
Interface IdentifierGeneratorFactory
-
- All Known Implementing Classes:
StandardIdentifierGeneratorFactory
public interface IdentifierGeneratorFactoryContract for afactoryofIdentifierGeneratorinstances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description IdentifierGeneratorcreateIdentifierGenerator(jakarta.persistence.GenerationType generationType, String generatedValueGeneratorName, String generatorName, JavaType<?> javaType, Properties config, GeneratorDefinitionResolver definitionResolver)Create an IdentifierGenerator based on the given detailsIdentifierGeneratorcreateIdentifierGenerator(String strategy, Type type, Properties config)DialectgetDialect()Deprecated, for removal: This API element is subject to removal in a future version.should be removedClassgetIdentifierGeneratorClass(String strategy)Deprecated.with no replacement.
-
-
-
Method Detail
-
getDialect
@Deprecated(since="6.2", forRemoval=true) Dialect getDialect()
Deprecated, for removal: This API element is subject to removal in a future version.should be removedGet the dialect.- Returns:
- the dialect
-
createIdentifierGenerator
IdentifierGenerator createIdentifierGenerator(jakarta.persistence.GenerationType generationType, String generatedValueGeneratorName, String generatorName, JavaType<?> javaType, Properties config, GeneratorDefinitionResolver definitionResolver)
Create an IdentifierGenerator based on the given details
-
createIdentifierGenerator
@Deprecated(since="6.0") IdentifierGenerator createIdentifierGenerator(String strategy, Type type, Properties config)
Deprecated.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
@Deprecated(since="6.0") Class getIdentifierGeneratorClass(String strategy)
Deprecated.Retrieve the class that will be used as theIdentifierGeneratorfor the given strategy.- Parameters:
strategy- The strategy- Returns:
- The generator class.
-
-