public interface IdentifierGeneratorFactory
IdentifierGenerator
instances.Modifier and Type | Method and Description |
---|---|
IdentifierGenerator |
createIdentifierGenerator(java.lang.String strategy,
Type type,
java.util.Properties config)
Given a strategy, retrieve the appropriate identifier generator instance.
|
Dialect |
getDialect()
Get the dialect.
|
java.lang.Class |
getIdentifierGeneratorClass(java.lang.String strategy)
Retrieve the class that will be used as the
IdentifierGenerator for the given strategy. |
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.
|
Dialect getDialect()
@Deprecated void setDialect(Dialect dialect)
dialect
- The dialectIdentifierGenerator createIdentifierGenerator(java.lang.String strategy, Type type, java.util.Properties config)
strategy
- The generation strategy.type
- The mapping type for the identifier values.config
- Any configuraion properties given in the generator mapping.java.lang.Class getIdentifierGeneratorClass(java.lang.String strategy)
IdentifierGenerator
for the given strategy.strategy
- The strategyCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.