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:
insert statement, and
The implementation should be written to handle any instance of
org..
org.hibernate.generator.OnExecutionGenerator
| Modifier and Type | Method and Description |
|---|---|
| public TableInsertBuilder | createTableInsertBuilder(BasicEntityIdentifierMapping identifierMapping, Expectation expectation, SessionFactoryImplementor sessionFactory)
Deprecated
as a consequence of
Create a SessionFactoryImplementor being deprecated.
TableInsertBuilder with any specific identity
handling already built in.
|
| public Object | performInsert(PreparedStatementDetails insertStatementDetails, JdbcValueBindings valueBindings, Object entity, SharedSessionContractImplementor session)
Perform the |
| public Object | Returns: The generated identifier valueThe insertSQL, SharedSessionContractImplementor insert statement stringThe session in which we are operating session, Binder The parameter binder binder)Execute the given |
| public IdentifierGeneratingInsert | Returns: AnIdentifierGeneratingInsertA context to help generate SQL strings context)
Deprecated
since 6.2. this is no longer called
Build an insert statement
specific to the delegate's mode of handling generated key values.
|
| public default String | Returns: The processedinsert statement stringAppend SQL specific to this delegate's mode of handling generated
primary key values to the given |
| public PreparedStatement |
| createTableInsertBuilder | back to summary |
|---|---|
| public TableInsertBuilder createTableInsertBuilder(BasicEntityIdentifierMapping identifierMapping, Expectation expectation, SessionFactoryImplementor sessionFactory)
Deprecated as a consequence of Create a | |
| performInsert | back to summary |
|---|---|
| public Object performInsert(PreparedStatementDetails insertStatementDetails, JdbcValueBindings valueBindings, Object entity, SharedSessionContractImplementor session) Perform the
| |
| performInsert | back to summary |
|---|---|
| public Object performInsert(String insertSQL, SharedSessionContractImplementor session, Binder binder) Execute the given
| |
| prepareIdentifierGeneratingInsert | back to summary |
|---|---|
| public IdentifierGeneratingInsert prepareIdentifierGeneratingInsert(SqlStringGenerationContext context)
Deprecated since 6.2. this is no longer called Build an insert statement specific to the delegate's mode of handling generated key values.
| |
| prepareIdentifierGeneratingInsert | back to summary |
|---|---|
| public default String prepareIdentifierGeneratingInsert(String insertSQL) Append SQL specific to this delegate's mode of handling generated
primary key values to the given
| |
| prepareStatement | back to summary |
|---|---|
| public PreparedStatement prepareStatement(String insertSql, SharedSessionContractImplementor session) | |