Package org.hibernate.id.insert
Interface InsertGeneratedIdentifierDelegate
- All Superinterfaces:
GeneratedValuesMutationDelegate
- All Known Implementing Classes:
AbstractReturningDelegate
,AbstractSelectingDelegate
,BasicSelectingDelegate
,GetGeneratedKeysDelegate
,InsertReturningDelegate
,SybaseJConnGetGeneratedKeysDelegate
,UniqueKeySelectingDelegate
@Deprecated(since="6.5",
forRemoval=true)
public interface InsertGeneratedIdentifierDelegate
extends GeneratedValuesMutationDelegate
Deprecated, for removal: This API element is subject to removal in a future version.
Each implementation defines a strategy for retrieving a primary key
generated by
the database from the database after execution of an
insert
statement. The generated primary key is usually an IDENTITY
column, but in principle it might be something else, for example,
a value generated by a trigger.
An implementation controls:
- building the SQL
insert
statement, and - retrieving the generated identifier value using JDBC.
The implementation should be written to handle any instance of
OnExecutionGenerator
.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionperformInsertReturning
(String insertSQL, SharedSessionContractImplementor session, Binder binder) Deprecated, for removal: This API element is subject to removal in a future version.Execute the giveninsert
statement and return the generated key value.default String
prepareIdentifierGeneratingInsert
(String insertSQL) Deprecated, for removal: This API element is subject to removal in a future version.Append SQL specific to this delegate's mode of handling generated primary key values to the giveninsert
statement.prepareStatement
(String insertSql, SharedSessionContractImplementor session) Deprecated, for removal: This API element is subject to removal in a future version.Create aPreparedStatement
from the providedsql
based on the delegate needs.Methods inherited from interface org.hibernate.generator.values.GeneratedValuesMutationDelegate
createTableMutationBuilder, getGeneratedValuesMappingProducer, getTiming, performMutation, supportsArbitraryValues, supportsRowId
-
Method Details
-
prepareIdentifierGeneratingInsert
Deprecated, for removal: This API element is subject to removal in a future version.Append SQL specific to this delegate's mode of handling generated primary key values to the giveninsert
statement.- Returns:
- The processed
insert
statement string
GeneratedValuesMutationDelegate
instead.