org.hibernate.id.factory.IdentifierGeneratorFactory ,
responsible for instantiating the predefined built-in id generators, and generators
declared using org.hibernate.annotations.GenericGenerator .
| Modifier and Type | Field and Description |
|---|---|
| private final BeanContainer | |
| private Dialect | |
| private final ConcurrentHashMap | |
| private final ConcurrentHashMap | |
| private final ServiceRegistry |
| Access | Constructor and Description |
|---|---|
| public | |
| public | StandardIdentifierGeneratorFactory(ServiceRegistry serviceRegistry, boolean ignoreBeanContainer)
Constructs a new factory, explicitly controlling whether to use CDI or not |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public IdentifierGenerator | createIdentifierGenerator(GenerationType generationType, String generatedValueGeneratorName, String generatorName, JavaType<?> javaType, Properties config, GeneratorDefinitionResolver definitionResolver)
Implements org. IdentifierGenerator based on the given details.
|
| public Generator | createIdentifierGenerator(String
The generation strategy. strategy, Type The mapping type for the identifier values. type, Properties Any parameters properties given in the generator mapping. parameters)Implements org. |
| protected Class | |
| private static BeanContainer | |
| public Dialect | getDialect()
Implements org.
Deprecated
Get the dialect.
|
| public Class | getIdentifierGeneratorClass(String
The strategy strategy)Implements org. IdentifierGenerator for the given strategy.
|
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public boolean |
| beanContainer | back to summary |
|---|---|
| private final BeanContainer beanContainer | |
| dialect | back to summary |
|---|---|
| private Dialect dialect | |
| generatorTypeStrategyMap | back to summary |
|---|---|
| private final ConcurrentHashMap<GenerationType, GenerationTypeStrategy> generatorTypeStrategyMap | |
| legacyGeneratorClassNameMap | back to summary |
|---|---|
| private final ConcurrentHashMap<String, Class<? extends Generator>> legacyGeneratorClassNameMap | |
| serviceRegistry | back to summary |
|---|---|
| private final ServiceRegistry serviceRegistry | |
| StandardIdentifierGeneratorFactory | back to summary |
|---|---|
| public StandardIdentifierGeneratorFactory(ServiceRegistry serviceRegistry) Constructs a new factory | |
| StandardIdentifierGeneratorFactory | back to summary |
|---|---|
| public StandardIdentifierGeneratorFactory(ServiceRegistry serviceRegistry, boolean ignoreBeanContainer) Constructs a new factory, explicitly controlling whether to use CDI or not | |
| canUseCachedReferences | back to summary |
|---|---|
| public boolean canUseCachedReferences() Implements org.
| |
| createIdentifierGenerator | back to summary |
|---|---|
| public IdentifierGenerator createIdentifierGenerator(GenerationType generationType, String generatedValueGeneratorName, String generatorName, JavaType<?> javaType, Properties config, GeneratorDefinitionResolver definitionResolver) Implements org. Doc from org. Create an
| |
| createIdentifierGenerator | back to summary |
|---|---|
| public Generator createIdentifierGenerator(String strategy, Type type, Properties parameters) Implements org. Doc from org. Given a strategy, retrieve the appropriate identifier generator instance.
| |
| generatorClassForName | back to summary |
|---|---|
| protected Class | |
| getBeanContainer | back to summary |
|---|---|
| private static BeanContainer getBeanContainer(ServiceRegistry serviceRegistry, boolean ignoreBeanContainer) | |
| getDialect | back to summary |
|---|---|
| public Dialect getDialect() Implements org. Doc from org. Deprecated
Get the dialect.
| |
| getIdentifierGeneratorClass | back to summary |
|---|---|
| public Class Implements org. Doc from org. Retrieve the class that will be used as the | |
| logOverrides | back to summary |
|---|---|
| private void logOverrides() | |
| register | back to summary |
|---|---|
| private void register(String strategy, Class<? extends Generator> generatorClass) | |
| registerJpaGenerators | back to summary |
|---|---|
| private void registerJpaGenerators() | |
| registerPredefinedGenerators | back to summary |
|---|---|
| private void registerPredefinedGenerators() | |
| registerUsingLegacyContributor | back to summary |
|---|---|
| private void registerUsingLegacyContributor() | |
| useJpaCompliantCreation | back to summary |
|---|---|
| public boolean useJpaCompliantCreation() Implements org.
| |