Package org.hibernate.id.insert
Interface InsertGeneratedIdentifierDelegate
- All Known Implementing Classes:
AbstractReturningDelegate,AbstractSelectingDelegate,IdentityGenerator.BasicDelegate,IdentityGenerator.GetGeneratedKeysDelegate,IdentityGenerator.InsertSelectDelegate,SelectGenerator.SelectGeneratorDelegate,SequenceIdentityGenerator.Delegate
public interface InsertGeneratedIdentifierDelegate
Responsible 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
Modifier and TypeMethodDescriptionperformInsert(String insertSQL, SessionImplementor session, Binder binder) Perform the indicated insert SQL statement and determine the identifier value generated.Build aInsertspecific to the delegate's mode of handling generated key values.
-
Method Details
-
prepareIdentifierGeneratingInsert
IdentifierGeneratingInsert prepareIdentifierGeneratingInsert()Build aInsertspecific to the delegate's mode of handling generated key values.- Returns:
- The insert object.
-
performInsert
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.
-