类 AbstractMultiTableBulkIdStrategyImpl<TT extends IdTableInfo,CT extends AbstractMultiTableBulkIdStrategyImpl.PreparationContext>
- java.lang.Object
-
- org.hibernate.hql.spi.id.AbstractMultiTableBulkIdStrategyImpl<TT,CT>
-
- 所有已实现的接口:
MultiTableBulkIdStrategy
- 直接已知子类:
GlobalTemporaryTableBulkIdStrategy,LocalTemporaryTableBulkIdStrategy,PersistentTableBulkIdStrategy
public abstract class AbstractMultiTableBulkIdStrategyImpl<TT extends IdTableInfo,CT extends AbstractMultiTableBulkIdStrategyImpl.PreparationContext> extends Object implements MultiTableBulkIdStrategy
Convenience base class for MultiTableBulkIdStrategy implementations.- 作者:
- Steve Ebersole
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interfaceAbstractMultiTableBulkIdStrategyImpl.PreparationContext-
从接口继承的嵌套类/接口 org.hibernate.hql.spi.id.MultiTableBulkIdStrategy
MultiTableBulkIdStrategy.DeleteHandler, MultiTableBulkIdStrategy.UpdateHandler
-
-
构造器概要
构造器 构造器 说明 AbstractMultiTableBulkIdStrategyImpl(IdTableSupport idTableSupport)
-
方法概要
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.hql.spi.id.MultiTableBulkIdStrategy
buildDeleteHandler, buildUpdateHandler, release
-
-
-
-
构造器详细资料
-
AbstractMultiTableBulkIdStrategyImpl
public AbstractMultiTableBulkIdStrategyImpl(IdTableSupport idTableSupport)
-
-
方法详细资料
-
getIdTableSupport
public IdTableSupport getIdTableSupport()
-
prepare
public final void prepare(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, MetadataImplementor metadata, 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 objectconnectionAccess- Access to the JDBC Connectionmetadata- Access to the O/RM mapping information
-
buildPreparationContext
protected CT buildPreparationContext()
-
initialize
protected void initialize(MetadataBuildingOptions buildingOptions, SessionFactoryOptions sessionFactoryOptions)
Configure ourselves. By default, nothing to do; here totally for subclass hook-in- 参数:
buildingOptions- Access to user-defined Metadata building optionssessionFactoryOptions-
-
determineIdTableName
protected QualifiedTableName determineIdTableName(JdbcEnvironment jdbcEnvironment, PersistentClass entityBinding)
-
augmentIdTableDefinition
protected void augmentIdTableDefinition(Table idTable)
-
buildIdTableInfo
protected abstract TT buildIdTableInfo(PersistentClass entityBinding, Table idTable, JdbcServices jdbcServices, MetadataImplementor metadata, CT context)
-
buildIdTableCreateStatement
protected String buildIdTableCreateStatement(Table idTable, JdbcServices jdbcServices, MetadataImplementor metadata)
-
buildIdTableDropStatement
protected String buildIdTableDropStatement(Table idTable, JdbcServices jdbcServices)
-
finishPreparation
protected void finishPreparation(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, MetadataImplementor metadata, CT context)
-
-