Package org.hibernate.id
Interface BulkInsertionCapableIdentifierGenerator
-
- All Superinterfaces:
Configurable
,ExportableProducer
,IdentifierGenerator
,StandardGenerator
- All Known Implementing Classes:
AbstractPostInsertGenerator
,IdentityGenerator
,OrderedSequenceGenerator
,SelectGenerator
,SequenceStyleGenerator
public interface BulkInsertionCapableIdentifierGenerator extends StandardGenerator
Specialized contract forIdentifierGenerator
implementations capable of being used in conjunction with HQL insert statements.
-
-
Field Summary
-
Fields inherited from interface org.hibernate.id.IdentifierGenerator
CONTRIBUTOR_NAME, ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
determineBulkInsertionIdentifierGenerationSelectFragment(SqlStringGenerationContext context)
Return the select expression fragment, if any, that generates the identifier values.boolean
supportsBulkInsertionIdentifierGeneration()
Given the configuration of this generator, is identifier generation as part of bulk insertion supported?-
Methods inherited from interface org.hibernate.id.IdentifierGenerator
configure, generate, initialize, registerExportables, supportsJdbcBatchInserts
-
-
-
-
Method Detail
-
supportsBulkInsertionIdentifierGeneration
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- Returns:
true
if bulk insertions are supported;false
otherwise.
-
determineBulkInsertionIdentifierGenerationSelectFragment
String determineBulkInsertionIdentifierGenerationSelectFragment(SqlStringGenerationContext context)
Return the select expression fragment, if any, that generates the identifier values.- Returns:
- The identifier value generation fragment (SQL).
null
indicates that no fragment is needed.
-
-