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
ConstructorsConstructorDescriptionUniqueKeySelectingDelegate(EntityPersister persister, String[] uniqueKeyPropertyNames, EventType timing) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbindParameters(Object entity, PreparedStatement ps, SharedSessionContractImplementor session) createTableMutationBuilder(Expectation expectation, SessionFactoryImplementor factory) Create aTableMutationBuilderinstance used to build table mutations for this delegate.protected StringGet the SQL statement to be used to retrieve generated key values.Methods inherited from class org.hibernate.id.insert.AbstractSelectingDelegate
performInsertReturning, performMutation, prepareStatementMethods inherited from class org.hibernate.generator.values.AbstractGeneratedValuesMutationDelegate
dialect, getGeneratedValuesMappingProducer, getTiming, supportsArbitraryValues, supportsRowIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.generator.values.GeneratedValuesMutationDelegate
getGeneratedValuesMappingProducer, getTiming, supportsArbitraryValues, supportsRowIdMethods inherited from interface org.hibernate.id.insert.InsertGeneratedIdentifierDelegate
prepareIdentifierGeneratingInsert
-
Constructor Details
-
UniqueKeySelectingDelegate
public UniqueKeySelectingDelegate(EntityPersister persister, String[] uniqueKeyPropertyNames, EventType timing)
-
-
Method Details
-
getSelectSQL
Description copied from class:AbstractSelectingDelegateGet the SQL statement to be used to retrieve generated key values.- Specified by:
getSelectSQLin classAbstractSelectingDelegate- Returns:
- The SQL command string
-
createTableMutationBuilder
public TableMutationBuilder<?> createTableMutationBuilder(Expectation expectation, SessionFactoryImplementor factory) Description copied from interface:GeneratedValuesMutationDelegateCreate aTableMutationBuilderinstance used to build table mutations for this delegate.
-