public interface MultiTableBulkIdStrategy
Generalized strategy contract for handling multi-table bulk HQL operations.
Modifier and Type | Interface and Description |
---|---|
static interface |
MultiTableBulkIdStrategy.DeleteHandler
Handler for dealing with multi-table HQL bulk delete statements.
|
static interface |
MultiTableBulkIdStrategy.UpdateHandler
Handler for dealing with multi-table HQL bulk update statements.
|
Modifier and Type | Method and Description |
---|---|
MultiTableBulkIdStrategy.DeleteHandler |
buildDeleteHandler(SessionFactoryImplementor factory,
org.hibernate.hql.internal.ast.HqlSqlWalker walker)
Build a handler capable of handling the bulk delete indicated by the given walker.
|
MultiTableBulkIdStrategy.UpdateHandler |
buildUpdateHandler(SessionFactoryImplementor factory,
org.hibernate.hql.internal.ast.HqlSqlWalker walker)
Build a handler capable of handling the bulk update indicated by the given walker.
|
void |
prepare(JdbcServices jdbcServices,
JdbcConnectionAccess connectionAccess,
MetadataImplementor metadata,
SessionFactoryOptions sessionFactoryOptions)
Prepare the strategy.
|
void |
release(JdbcServices jdbcServices,
JdbcConnectionAccess connectionAccess)
Release the strategy.
|
void prepare(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, MetadataImplementor metadata, SessionFactoryOptions sessionFactoryOptions)
Prepare the strategy. Called as the SessionFactory is being built. Intended patterns here include:<ul> <li>Adding tables to the passed Mappings, to be picked by by "schema management tools"</li> <li>Manually creating the tables immediately through the passed JDBC Connection access</li> </ul>
jdbcServices
- The JdbcService objectconnectionAccess
- Access to the JDBC Connectionmetadata
- Access to the O/RM mapping informationsessionFactoryOptions
- void release(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess)
Release the strategy. Called as the SessionFactory is being shut down.
jdbcServices
- The JdbcService objectconnectionAccess
- Access to the JDBC ConnectionMultiTableBulkIdStrategy.UpdateHandler buildUpdateHandler(SessionFactoryImplementor factory, org.hibernate.hql.internal.ast.HqlSqlWalker walker)
Build a handler capable of handling the bulk update indicated by the given walker.
factory
- The SessionFactorywalker
- The AST walker, representing the update queryMultiTableBulkIdStrategy.DeleteHandler buildDeleteHandler(SessionFactoryImplementor factory, org.hibernate.hql.internal.ast.HqlSqlWalker walker)
Build a handler capable of handling the bulk delete indicated by the given walker.
factory
- The SessionFactorywalker
- The AST walker, representing the delete queryCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.