类 PersistentTableBulkIdStrategy
- java.lang.Object
-
- org.hibernate.hql.spi.id.AbstractMultiTableBulkIdStrategyImpl<org.hibernate.hql.spi.id.persistent.IdTableInfoImpl,org.hibernate.hql.spi.id.persistent.PreparationContextImpl>
-
- org.hibernate.hql.spi.id.persistent.PersistentTableBulkIdStrategy
-
- 所有已实现的接口:
MultiTableBulkIdStrategy
public class PersistentTableBulkIdStrategy extends AbstractMultiTableBulkIdStrategyImpl<org.hibernate.hql.spi.id.persistent.IdTableInfoImpl,org.hibernate.hql.spi.id.persistent.PreparationContextImpl> implements MultiTableBulkIdStrategy
This is a strategy that mimics temporary tables for databases which do not support temporary tables. It follows a pattern similar to the ANSI SQL definition of global temporary table using a "session id" column to segment rows from the various sessions.- 作者:
- Steve Ebersole
-
-
嵌套类概要
-
从类继承的嵌套类/接口 org.hibernate.hql.spi.id.AbstractMultiTableBulkIdStrategyImpl
AbstractMultiTableBulkIdStrategyImpl.PreparationContext
-
从接口继承的嵌套类/接口 org.hibernate.hql.spi.id.MultiTableBulkIdStrategy
MultiTableBulkIdStrategy.DeleteHandler, MultiTableBulkIdStrategy.UpdateHandler
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringCATALOGstatic StringDROP_ID_TABLESstatic StringSCHEMAstatic StringSHORT_NAME
-
构造器概要
构造器 构造器 说明 PersistentTableBulkIdStrategy()PersistentTableBulkIdStrategy(IdTableSupport idTableSupport)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidaugmentIdTableDefinition(Table idTable)MultiTableBulkIdStrategy.DeleteHandlerbuildDeleteHandler(SessionFactoryImplementor factory, HqlSqlWalker walker)Build a handler capable of handling the bulk delete indicated by the given walker.protected org.hibernate.hql.spi.id.persistent.IdTableInfoImplbuildIdTableInfo(PersistentClass entityBinding, Table idTable, JdbcServices jdbcServices, MetadataImplementor metadata, org.hibernate.hql.spi.id.persistent.PreparationContextImpl context)protected org.hibernate.hql.spi.id.persistent.PreparationContextImplbuildPreparationContext()MultiTableBulkIdStrategy.UpdateHandlerbuildUpdateHandler(SessionFactoryImplementor factory, HqlSqlWalker walker)Build a handler capable of handling the bulk update indicated by the given walker.protected QualifiedTableNamedetermineIdTableName(JdbcEnvironment jdbcEnvironment, PersistentClass entityBinding)protected voidfinishPreparation(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, MetadataImplementor metadata, org.hibernate.hql.spi.id.persistent.PreparationContextImpl context)protected voidinitialize(MetadataBuildingOptions buildingOptions, SessionFactoryOptions sessionFactoryOptions)Configure ourselves.voidrelease(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess)Release the strategy.-
从类继承的方法 org.hibernate.hql.spi.id.AbstractMultiTableBulkIdStrategyImpl
buildIdTableCreateStatement, buildIdTableDropStatement, getIdTableInfo, getIdTableInfo, getIdTableSupport, prepare
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.hql.spi.id.MultiTableBulkIdStrategy
prepare
-
-
-
-
构造器详细资料
-
PersistentTableBulkIdStrategy
public PersistentTableBulkIdStrategy()
-
PersistentTableBulkIdStrategy
public PersistentTableBulkIdStrategy(IdTableSupport idTableSupport)
-
-
方法详细资料
-
buildPreparationContext
protected org.hibernate.hql.spi.id.persistent.PreparationContextImpl buildPreparationContext()
- 覆盖:
buildPreparationContext在类中AbstractMultiTableBulkIdStrategyImpl<org.hibernate.hql.spi.id.persistent.IdTableInfoImpl,org.hibernate.hql.spi.id.persistent.PreparationContextImpl>
-
initialize
protected void initialize(MetadataBuildingOptions buildingOptions, SessionFactoryOptions sessionFactoryOptions)
从类复制的说明:AbstractMultiTableBulkIdStrategyImplConfigure ourselves. By default, nothing to do; here totally for subclass hook-in- 覆盖:
initialize在类中AbstractMultiTableBulkIdStrategyImpl<org.hibernate.hql.spi.id.persistent.IdTableInfoImpl,org.hibernate.hql.spi.id.persistent.PreparationContextImpl>- 参数:
buildingOptions- Access to user-defined Metadata building options
-
determineIdTableName
protected QualifiedTableName determineIdTableName(JdbcEnvironment jdbcEnvironment, PersistentClass entityBinding)
- 覆盖:
determineIdTableName在类中AbstractMultiTableBulkIdStrategyImpl<org.hibernate.hql.spi.id.persistent.IdTableInfoImpl,org.hibernate.hql.spi.id.persistent.PreparationContextImpl>
-
augmentIdTableDefinition
protected void augmentIdTableDefinition(Table idTable)
- 覆盖:
augmentIdTableDefinition在类中AbstractMultiTableBulkIdStrategyImpl<org.hibernate.hql.spi.id.persistent.IdTableInfoImpl,org.hibernate.hql.spi.id.persistent.PreparationContextImpl>
-
buildIdTableInfo
protected org.hibernate.hql.spi.id.persistent.IdTableInfoImpl buildIdTableInfo(PersistentClass entityBinding, Table idTable, JdbcServices jdbcServices, MetadataImplementor metadata, org.hibernate.hql.spi.id.persistent.PreparationContextImpl context)
- 指定者:
buildIdTableInfo在类中AbstractMultiTableBulkIdStrategyImpl<org.hibernate.hql.spi.id.persistent.IdTableInfoImpl,org.hibernate.hql.spi.id.persistent.PreparationContextImpl>
-
finishPreparation
protected void finishPreparation(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, MetadataImplementor metadata, org.hibernate.hql.spi.id.persistent.PreparationContextImpl context)
- 覆盖:
finishPreparation在类中AbstractMultiTableBulkIdStrategyImpl<org.hibernate.hql.spi.id.persistent.IdTableInfoImpl,org.hibernate.hql.spi.id.persistent.PreparationContextImpl>
-
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
-
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
-
-