类 InlineIdsSubSelectValueListBulkIdStrategy
- java.lang.Object
-
- org.hibernate.hql.spi.id.inline.InlineIdsSubSelectValueListBulkIdStrategy
-
- 所有已实现的接口:
MultiTableBulkIdStrategy
public class InlineIdsSubSelectValueListBulkIdStrategy extends Object implements MultiTableBulkIdStrategy
This bulk-id strategy inlines identifiers of the rows that need to be updated or deleted in a subselect using a VALUES list:delete from Person where ( id ) in ( select id from ( values ( 1 ), ( 2 ), ( 3 ), ( 4 ) ) as HT (id) )- 作者:
- Vlad Mihalcea
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 org.hibernate.hql.spi.id.MultiTableBulkIdStrategy
MultiTableBulkIdStrategy.DeleteHandler, MultiTableBulkIdStrategy.UpdateHandler
-
-
字段概要
字段 修饰符和类型 字段 说明 static InlineIdsSubSelectValueListBulkIdStrategyINSTANCE
-
构造器概要
构造器 构造器 说明 InlineIdsSubSelectValueListBulkIdStrategy()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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 jdbcConnectionAccess, MetadataImplementor metadataImplementor, SessionFactoryOptions sessionFactoryOptions)Prepare the strategy.voidrelease(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess)Release the strategy.
-
-
-
字段详细资料
-
INSTANCE
public static final InlineIdsSubSelectValueListBulkIdStrategy INSTANCE
-
-
方法详细资料
-
prepare
public void prepare(JdbcServices jdbcServices, JdbcConnectionAccess jdbcConnectionAccess, MetadataImplementor metadataImplementor, SessionFactoryOptions sessionFactoryOptions)
从接口复制的说明:MultiTableBulkIdStrategyPrepare 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
- 指定者:
prepare在接口中MultiTableBulkIdStrategy- 参数:
jdbcServices- The JdbcService objectjdbcConnectionAccess- Access to the JDBC ConnectionmetadataImplementor- Access to the O/RM mapping information
-
release
public void release(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess)
从接口复制的说明:MultiTableBulkIdStrategyRelease the strategy. Called as the SessionFactory is being shut down.- 指定者:
release在接口中MultiTableBulkIdStrategy- 参数:
jdbcServices- The JdbcService objectconnectionAccess- Access to the JDBC Connection
-
buildUpdateHandler
public MultiTableBulkIdStrategy.UpdateHandler buildUpdateHandler(SessionFactoryImplementor factory, HqlSqlWalker walker)
从接口复制的说明:MultiTableBulkIdStrategyBuild a handler capable of handling the bulk update indicated by the given walker.- 指定者:
buildUpdateHandler在接口中MultiTableBulkIdStrategy- 参数:
factory- The SessionFactorywalker- The AST walker, representing the update query- 返回:
- The handler
-
buildDeleteHandler
public MultiTableBulkIdStrategy.DeleteHandler buildDeleteHandler(SessionFactoryImplementor factory, HqlSqlWalker walker)
从接口复制的说明:MultiTableBulkIdStrategyBuild a handler capable of handling the bulk delete indicated by the given walker.- 指定者:
buildDeleteHandler在接口中MultiTableBulkIdStrategy- 参数:
factory- The SessionFactorywalker- The AST walker, representing the delete query- 返回:
- The handler
-
-