public abstract class AbstractPostInsertGenerator extends Object implements PostInsertIdentifierGenerator, BulkInsertionCapableIdentifierGenerator
PostInsertIdentifierGenerator contract.ENTITY_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(SessionImplementor 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, waitgetInsertGeneratedIdentifierDelegatepublic Serializable generate(SessionImplementor s, Object obj)
IdentifierGeneratorgenerate in interface IdentifierGeneratorobj - the entity or toplevel collection 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 © 2018 JBoss by Red Hat. All rights reserved.