Package org.hibernate.id.insert
Interface InsertGeneratedIdentifierDelegate
-
- All Known Implementing Classes:
AbstractReturningDelegate,AbstractSelectingDelegate,GetGeneratedKeysDelegate,IdentityGenerator.BasicDelegate,IdentityGenerator.InsertSelectDelegate,Oracle12cGetGeneratedKeysDelegate,SelectGenerator.SelectGeneratorDelegate,SequenceIdentityGenerator.Delegate
public interface InsertGeneratedIdentifierDelegateResponsible for handling delegation relating to variants in how insert-generated-identifier generator strategies dictate processing:- building the sql insert statement
- determination of the generated identifier value
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description java.io.SerializableperformInsert(java.lang.String insertSQL, SharedSessionContractImplementor session, Binder binder)Perform the indicated insert SQL statement and determine the identifier value generated.default IdentifierGeneratingInsertprepareIdentifierGeneratingInsert()Deprecated.ImplementprepareIdentifierGeneratingInsert(SqlStringGenerationContext)instead.default IdentifierGeneratingInsertprepareIdentifierGeneratingInsert(SqlStringGenerationContext context)Build aInsertspecific to the delegate's mode of handling generated key values.
-
-
-
Method Detail
-
prepareIdentifierGeneratingInsert
@Deprecated default IdentifierGeneratingInsert prepareIdentifierGeneratingInsert()
Deprecated.ImplementprepareIdentifierGeneratingInsert(SqlStringGenerationContext)instead.Build aInsertspecific to the delegate's mode of handling generated key values.- Returns:
- The insert object.
-
prepareIdentifierGeneratingInsert
default IdentifierGeneratingInsert prepareIdentifierGeneratingInsert(SqlStringGenerationContext context)
Build aInsertspecific to the delegate's mode of handling generated key values.- Parameters:
context- A context to help generate SQL strings- Returns:
- The insert object.
-
performInsert
java.io.Serializable performInsert(java.lang.String insertSQL, SharedSessionContractImplementor session, Binder binder)Perform the indicated insert SQL statement and determine the identifier value generated.- Parameters:
insertSQL- The INSERT statement stringsession- The session in which we are operatingbinder- The param binder- Returns:
- The generated identifier value.
-
-