public class DefaultIdentifierGeneratorFactory extends Object implements IdentifierGeneratorFactory, Serializable
IdentifierGeneratorFactory implementations.| Constructor and Description |
|---|
DefaultIdentifierGeneratorFactory()
Constructs a new DefaultIdentifierGeneratorFactory.
|
| Modifier and Type | Method and Description |
|---|---|
IdentifierGenerator |
createIdentifierGenerator(String strategy,
Type type,
Properties config)
Given a strategy, retrieve the appropriate identifier generator instance.
|
Class |
getIdentifierGeneratorClass(String strategy)
Retrieve the class that will be used as the
IdentifierGenerator for the given strategy. |
void |
register(String strategy,
Class generatorClass) |
void |
setDialect(Dialect dialect)
Allow injection of the dialect to use.
|
public DefaultIdentifierGeneratorFactory()
public void setDialect(Dialect dialect)
setDialect in interface IdentifierGeneratorFactorydialect - The dialectpublic IdentifierGenerator createIdentifierGenerator(String strategy, Type type, Properties config)
createIdentifierGenerator in interface IdentifierGeneratorFactorystrategy - The generation strategy.type - The mapping type for the identifier values.config - Any configuraion properties given in the generator mapping.public Class getIdentifierGeneratorClass(String strategy)
IdentifierGenerator for the given strategy.getIdentifierGeneratorClass in interface IdentifierGeneratorFactorystrategy - The strategyCopyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved