接口 MultiTableBulkIdStrategy
-
- 所有已知实现类:
AbstractMultiTableBulkIdStrategyImpl,CteValuesListBulkIdStrategy,GlobalTemporaryTableBulkIdStrategy,InlineIdsInClauseBulkIdStrategy,InlineIdsOrClauseBulkIdStrategy,InlineIdsSubSelectValueListBulkIdStrategy,LocalTemporaryTableBulkIdStrategy,PersistentTableBulkIdStrategy
public interface MultiTableBulkIdStrategyGeneralized strategy contract for handling multi-table bulk HQL operations.- 作者:
- Steve Ebersole
-
-
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static interfaceMultiTableBulkIdStrategy.DeleteHandlerHandler for dealing with multi-table HQL bulk delete statements.static interfaceMultiTableBulkIdStrategy.UpdateHandlerHandler for dealing with multi-table HQL bulk update statements.
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 MultiTableBulkIdStrategy.DeleteHandlerbuildDeleteHandler(SessionFactoryImplementor factory, HqlSqlWalker walker)Build a handler capable of handling the bulk delete indicated by the given walker.MultiTableBulkIdStrategy.UpdateHandlerbuildUpdateHandler(SessionFactoryImplementor factory, HqlSqlWalker walker)Build a handler capable of handling the bulk update indicated by the given walker.voidprepare(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, MetadataImplementor metadata, SessionFactoryOptions sessionFactoryOptions)Prepare the strategy.voidrelease(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess)Release the strategy.
-
-
-
方法详细资料
-
prepare
void prepare(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, MetadataImplementor metadata, SessionFactoryOptions sessionFactoryOptions)
Prepare the strategy. Called as the SessionFactory is being built. Intended patterns here include:- Adding tables to the passed Mappings, to be picked by by "schema management tools"
- Manually creating the tables immediately through the passed JDBC Connection access
- 参数:
jdbcServices- The JdbcService objectconnectionAccess- Access to the JDBC Connectionmetadata- Access to the O/RM mapping informationsessionFactoryOptions-
-
release
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 Connection
-
buildUpdateHandler
MultiTableBulkIdStrategy.UpdateHandler buildUpdateHandler(SessionFactoryImplementor factory, 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 query- 返回:
- The handler
-
buildDeleteHandler
MultiTableBulkIdStrategy.DeleteHandler buildDeleteHandler(SessionFactoryImplementor factory, 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 query- 返回:
- The handler
-
-