Package org.hibernate.id
Interface BulkInsertionCapableIdentifierGenerator
-
- All Superinterfaces:
Generator,Serializable
- All Known Implementing Classes:
IdentityGenerator,OrderedSequenceGenerator,SelectGenerator,SequenceStyleGenerator
public interface BulkInsertionCapableIdentifierGenerator extends Generator
Specialized contract forIdentifierGeneratorimplementations capable of being used in conjunction with HQL insert statements.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default StringdetermineBulkInsertionIdentifierGenerationSelectFragment(SqlStringGenerationContext context)Return the select expression fragment, if any, that generates the identifier values.default booleansupportsBulkInsertionIdentifierGeneration()Given the configuration of this generator, is identifier generation as part of bulk insertion supported?-
Methods inherited from interface org.hibernate.generator.Generator
generatedOnExecution, generatesOnInsert, generatesOnUpdate, generatesSometimes, getEventTypes
-
-
-
-
Method Detail
-
supportsBulkInsertionIdentifierGeneration
default boolean supportsBulkInsertionIdentifierGeneration()
Given the configuration of this generator, is identifier generation as part of bulk insertion supported?- Returns:
trueif bulk insertions are supported;falseotherwise.- API Note:
- Mainly here to allow stuff like SequenceStyleGenerator which can support this based on configuration
-
determineBulkInsertionIdentifierGenerationSelectFragment
default String determineBulkInsertionIdentifierGenerationSelectFragment(SqlStringGenerationContext context)
Return the select expression fragment, if any, that generates the identifier values.- Returns:
- The identifier value generation fragment (SQL).
nullindicates that no fragment is needed.
-
-