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
public class UniqueKeySelectingDelegate extends AbstractSelectingDelegate
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
Constructors Constructor Description UniqueKeySelectingDelegate(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
bindParameters(Object entity, PreparedStatement ps, SharedSessionContractImplementor session)
TableMutationBuilder<?>
createTableMutationBuilder(Expectation expectation, SessionFactoryImplementor factory)
Create aTableMutationBuilder
instance used to build table mutations for this delegate.protected String
getSelectSQL()
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 Detail
-
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 Detail
-
getSelectSQL
protected String 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.
-
bindParameters
protected void bindParameters(Object entity, PreparedStatement ps, SharedSessionContractImplementor session) throws SQLException
- Overrides:
bindParameters
in classAbstractSelectingDelegate
- Throws:
SQLException
-
-