prepare and release allow the strategy to perform any one time preparation and cleanup.
API Note
See SqmMutationStrategyHelper#resolveStrategy for standard resolution of the strategy to use
for each hierarchy
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: The number of rows affectedExecute the multi-table insert indicated by the passed SqmInsertStatement |
| public default void | prepare(MappingModelCreationProcess mappingModelCreationProcess, JdbcConnectionAccess connectionAccess)
Prepare the strategy for use. |
| public default void | release(SessionFactoryImplementor sessionFactory, JdbcConnectionAccess connectionAccess)
Deprecated
as a consequence of
Release the strategy.
SessionFactoryImplementor being deprecated.
|
| executeInsert | back to summary |
|---|---|
| public int executeInsert(SqmInsertStatement<?> sqmInsertStatement, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context) Execute the multi-table insert indicated by the passed SqmInsertStatement
| |
| prepare | back to summary |
|---|---|
| public default void prepare(MappingModelCreationProcess mappingModelCreationProcess, JdbcConnectionAccess connectionAccess) Prepare the strategy for use. Called one time as the SessionFactory is being built. | |
| release | back to summary |
|---|---|
| public default void release(SessionFactoryImplementor sessionFactory, JdbcConnectionAccess connectionAccess)
Deprecated as a consequence of Release the strategy. Called one time as the SessionFactory is being shut down. | |