public abstract class AbstractPostInsertGenerator extends Object implements PostInsertIdentifierGenerator, BulkInsertionCapableIdentifierGenerator
PostInsertIdentifierGenerator contract.ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME| Constructor and Description |
|---|
AbstractPostInsertGenerator() |
| Modifier and Type | Method and Description |
|---|---|
String |
determineBulkInsertionIdentifierGenerationSelectFragment(Dialect dialect)
Return the select expression fragment, if any, that generates the identifier values.
|
Serializable |
generate(SharedSessionContractImplementor s,
Object obj)
Generate a new identifier.
|
boolean |
supportsBulkInsertionIdentifierGeneration()
Given the configuration of this generator, is identifier generation as part of bulk insertion supported?
IMPL NOTE : Mainly here to allow stuff like SequenceStyleGenerator which *can* support this based on
configuration
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInsertGeneratedIdentifierDelegate, supportsJdbcBatchInsertspublic Serializable generate(SharedSessionContractImplementor s, Object obj)
IdentifierGeneratorgenerate in interface IdentifierGenerators - The session from which the request originatesobj - the entity or collection (idbag) for which the id is being generatedpublic boolean supportsBulkInsertionIdentifierGeneration()
BulkInsertionCapableIdentifierGeneratorsupportsBulkInsertionIdentifierGeneration in interface BulkInsertionCapableIdentifierGeneratortrue if bulk insertions are supported; false otherwise.public String determineBulkInsertionIdentifierGenerationSelectFragment(Dialect dialect)
BulkInsertionCapableIdentifierGeneratordetermineBulkInsertionIdentifierGenerationSelectFragment in interface BulkInsertionCapableIdentifierGeneratordialect - The dialect against which the insert will be performed.null indicates that no fragment is needed.Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.