InsertGeneratedIdentifierDelegate implementation where
the underlying strategy requires a subsequent select after the
insert to determine the generated identifier.
| Modifier and Type | Field and Description |
|---|---|
| private final PostInsertIdentityPersister |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected Object | extractGeneratedValue(ResultSet resultSet, SharedSessionContractImplementor session)
Extract the generated key value from the given result set after execution of |
| protected abstract String | Returns: The SQL command stringGet the SQL statement to be used to retrieve generated key values. |
| public Object | performInsert(PreparedStatementDetails insertStatementDetails, JdbcValueBindings jdbcValueBindings, Object entity, SharedSessionContractImplementor session)
Implements org. insert and extract the database-generated
primary key value.
|
| public final Object | performInsert(String
The insertSQL, SharedSessionContractImplementor insert statement stringThe session in which we are operating session, Binder The parameter binder binder)Implements org. insert statement and return the generated
key value.
|
| public PreparedStatement | prepareStatement(String insertSql, SharedSessionContractImplementor session)
Implements org. |
| persister | back to summary |
|---|---|
| private final PostInsertIdentityPersister persister | |
| AbstractSelectingDelegate | back to summary |
|---|---|
| protected AbstractSelectingDelegate(PostInsertIdentityPersister persister) | |
| bindParameters | back to summary |
|---|---|
| protected void bindParameters(Object entity, PreparedStatement ps, SharedSessionContractImplementor session) throws SQLException | |
| extractGeneratedValue | back to summary |
|---|---|
| protected Object extractGeneratedValue(ResultSet resultSet, SharedSessionContractImplementor session) throws SQLException Extract the generated key value from the given result set after execution of | |
| getSelectSQL | back to summary |
|---|---|
| protected abstract String getSelectSQL() Get the SQL statement to be used to retrieve generated key values.
| |
| performInsert | back to summary |
|---|---|
| public Object performInsert(PreparedStatementDetails insertStatementDetails, JdbcValueBindings jdbcValueBindings, Object entity, SharedSessionContractImplementor session) Implements org. Doc from org. Perform the
| |
| performInsert | back to summary |
|---|---|
| public final Object performInsert(String insertSQL, SharedSessionContractImplementor session, Binder binder) Implements org. Doc from org. Execute the given
| |
| prepareStatement | back to summary |
|---|---|
| public PreparedStatement prepareStatement(String insertSql, SharedSessionContractImplementor session) Implements org.
| |