Package org.hibernate.id.insert
Class UniqueKeySelectingDelegate
java.lang.Object
org.hibernate.generator.values.AbstractGeneratedValuesMutationDelegate
org.hibernate.id.insert.AbstractSelectingDelegate
org.hibernate.id.insert.UniqueKeySelectingDelegate
- All Implemented Interfaces:
GeneratedValuesMutationDelegate
,InsertGeneratedIdentifierDelegate
Uses a unique key of the inserted entity to locate the newly inserted row.
-
Field Summary
Fields inherited from class org.hibernate.generator.values.AbstractGeneratedValuesMutationDelegate
jdbcValuesMappingProducer, persister
-
Constructor Summary
ConstructorDescriptionUniqueKeySelectingDelegate
(PostInsertIdentityPersister persister, Dialect dialect, String[] uniqueKeyPropertyNames) Deprecated, for removal: This API element is subject to removal in a future version.UniqueKeySelectingDelegate
(EntityPersister persister, String[] uniqueKeyPropertyNames, EventType timing) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
bindParameters
(Object entity, PreparedStatement ps, SharedSessionContractImplementor session) createTableMutationBuilder
(Expectation expectation, SessionFactoryImplementor factory) Create aTableMutationBuilder
instance used to build table mutations for this delegate.protected String
Get the SQL statement to be used to retrieve generated key values.Methods inherited from class org.hibernate.id.insert.AbstractSelectingDelegate
extractGeneratedValues, performInsertReturning, performMutation, prepareStatement
Methods inherited from class org.hibernate.generator.values.AbstractGeneratedValuesMutationDelegate
dialect, getGeneratedValuesMappingProducer, getTiming, supportsArbitraryValues, supportsRowId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.generator.values.GeneratedValuesMutationDelegate
getGeneratedValuesMappingProducer, getTiming, supportsArbitraryValues, supportsRowId
Methods inherited from interface org.hibernate.id.insert.InsertGeneratedIdentifierDelegate
createTableInsertBuilder, performInsert, performInsert, prepareIdentifierGeneratingInsert
-
Constructor Details
-
UniqueKeySelectingDelegate
@Deprecated(forRemoval=true, since="6.5") public UniqueKeySelectingDelegate(PostInsertIdentityPersister persister, Dialect dialect, String[] uniqueKeyPropertyNames) Deprecated, for removal: This API element is subject to removal in a future version. -
UniqueKeySelectingDelegate
public UniqueKeySelectingDelegate(EntityPersister persister, String[] uniqueKeyPropertyNames, EventType timing)
-
-
Method Details
-
getSelectSQL
Description copied from class:AbstractSelectingDelegate
Get the SQL statement to be used to retrieve generated key values.- Specified by:
getSelectSQL
in classAbstractSelectingDelegate
- Returns:
- The SQL command string
-
createTableMutationBuilder
public TableMutationBuilder<?> createTableMutationBuilder(Expectation expectation, SessionFactoryImplementor factory) Description copied from interface:GeneratedValuesMutationDelegate
Create aTableMutationBuilder
instance used to build table mutations for this delegate.
-
UniqueKeySelectingDelegate(EntityPersister, String[], EventType)
instead.