public interface

IdentifierGeneratorFactory

org.hibernate.id.factory.IdentifierGeneratorFactory
Known Indirect Subclasses

Class Overview

Contract for a factory of IdentifierGenerator instances.

Summary

Public Methods
abstract IdentifierGenerator createIdentifierGenerator(String strategy, Type type, Properties config)
Given a strategy, retrieve the appropriate identifier generator instance.
abstract Class getIdentifierGeneratorClass(String strategy)
Retrieve the class that will be used as the IdentifierGenerator for the given strategy.
abstract void setDialect(Dialect dialect)
This method is deprecated. The intention is that Dialect should be required to be specified up-front and it would then get ctor injected.

Public Methods

public abstract IdentifierGenerator createIdentifierGenerator (String strategy, Type type, 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 configuraion properties given in the generator mapping.
Returns
  • The appropriate generator instance.

public abstract Class getIdentifierGeneratorClass (String strategy)

Retrieve the class that will be used as the IdentifierGenerator for the given strategy.

Parameters
strategy The strategy
Returns
  • The generator class.

public abstract void setDialect (Dialect dialect)

This method is 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