Top Description Methods
org.hibernate.id

public Interface BulkInsertionCapableIdentifierGenerator

extends Generator
Known Direct Implementers
org.hibernate.id.IdentityGenerator, org.hibernate.id.SelectGenerator, org.hibernate.id.enhanced.SequenceStyleGenerator, org.hibernate.id.AbstractPostInsertGenerator
Imports
org.hibernate.boot.model.relational.SqlStringGenerationContext, org.hibernate.generator.Generator

Specialized contract for IdentifierGenerator implementations capable of being used in conjunction with HQL insert statements.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public default String

Returns:

The identifier value generation fragment (SQL). null indicates that no fragment is needed.
determineBulkInsertionIdentifierGenerationSelectFragment
(SqlStringGenerationContext context)

Return the select expression fragment, if any, that generates the identifier values.

public default boolean

Returns:

true if bulk insertions are supported; false otherwise.
supportsBulkInsertionIdentifierGeneration
()

Given the configuration of this generator, is identifier generation as part of bulk insertion supported?

Inherited from org.hibernate.generator.Generator:
generatedOnExecutiongeneratedOnExecutiongeneratesOnInsertgeneratesOnUpdategeneratesSometimesgetEventTypes

Method Detail

determineBulkInsertionIdentifierGenerationSelectFragmentback to summary
public default String determineBulkInsertionIdentifierGenerationSelectFragment(SqlStringGenerationContext context)

Return the select expression fragment, if any, that generates the identifier values.

Returns:String

The identifier value generation fragment (SQL). null indicates that no fragment is needed.

supportsBulkInsertionIdentifierGenerationback to summary
public default boolean supportsBulkInsertionIdentifierGeneration()

Given the configuration of this generator, is identifier generation as part of bulk insertion supported?

API Note

Mainly here to allow stuff like SequenceStyleGenerator which can support this based on configuration

Returns:boolean

true if bulk insertions are supported; false otherwise.