public class IdentifierGeneration extends Object
Constructor and Description |
---|
IdentifierGeneration() |
Modifier and Type | Method and Description |
---|---|
static Serializable | assignIdIfNecessary(Object generatedId, Object entity, EntityPersister persister, SharedSessionContractImplementor session) |
(package private) static QualifiedName | determineSequenceName(Properties params, ServiceRegistry serviceRegistry) Determine the name of the sequence (or table if this resolves to a physical table) to use. |
(package private) static QualifiedName | determineTableName(Properties params, ServiceRegistry serviceRegistry) |
static CompletionStage<Serializable> | generateId(Object entity, EntityPersister persister, ReactiveConnectionSupplier connectionSupplier, SharedSessionContractImplementor session) |
static QualifiedName determineSequenceName(Properties params, ServiceRegistry serviceRegistry)
params
- The params supplied in the generator config (plus some standard useful extras).static QualifiedName determineTableName(Properties params, ServiceRegistry serviceRegistry)
public static CompletionStage<Serializable> generateId(Object entity, EntityPersister persister, ReactiveConnectionSupplier connectionSupplier, SharedSessionContractImplementor session)
public static Serializable assignIdIfNecessary(Object generatedId, Object entity, EntityPersister persister, SharedSessionContractImplementor session)