| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.id.factory.DefaultIdentifierGeneratorFactory
public class DefaultIdentifierGeneratorFactory
Basic templated support for IdentifierGeneratorFactory implementations.
| Constructor Summary | |
|---|---|
| DefaultIdentifierGeneratorFactory()Constructs a new DefaultIdentifierGeneratorFactory. | |
| Method Summary | |
|---|---|
|  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 IdentifierGeneratorfor the given strategy. | 
|  void | register(String strategy,
         Class generatorClass) | 
|  void | setDialect(Dialect dialect)Allow injection of the dialect to use. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DefaultIdentifierGeneratorFactory()
| Method Detail | 
|---|
public void setDialect(Dialect dialect)
setDialect in interface IdentifierGeneratorFactorydialect - The dialect
public void register(String strategy,
                     Class generatorClass)
public 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 strategy
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||