public class PersistentTableBulkIdStrategy extends AbstractMultiTableBulkIdStrategyImpl<org.hibernate.hql.spi.id.persistent.IdTableInfoImpl,org.hibernate.hql.spi.id.persistent.PreparationContextImpl> implements MultiTableBulkIdStrategy
AbstractMultiTableBulkIdStrategyImpl.PreparationContext
MultiTableBulkIdStrategy.DeleteHandler, MultiTableBulkIdStrategy.UpdateHandler
Modifier and Type | Field and Description |
---|---|
static String |
CATALOG |
static String |
DROP_ID_TABLES |
static String |
SCHEMA |
static String |
SHORT_NAME |
Constructor and Description |
---|
PersistentTableBulkIdStrategy() |
PersistentTableBulkIdStrategy(IdTableSupport idTableSupport) |
Modifier and Type | Method and Description |
---|---|
protected void |
augmentIdTableDefinition(Table idTable) |
MultiTableBulkIdStrategy.DeleteHandler |
buildDeleteHandler(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.IdTableInfoImpl |
buildIdTableInfo(PersistentClass entityBinding,
Table idTable,
JdbcServices jdbcServices,
MetadataImplementor metadata,
org.hibernate.hql.spi.id.persistent.PreparationContextImpl context) |
protected org.hibernate.hql.spi.id.persistent.PreparationContextImpl |
buildPreparationContext() |
MultiTableBulkIdStrategy.UpdateHandler |
buildUpdateHandler(SessionFactoryImplementor factory,
HqlSqlWalker walker)
Build a handler capable of handling the bulk update indicated by the given walker.
|
protected QualifiedTableName |
determineIdTableName(JdbcEnvironment jdbcEnvironment,
PersistentClass entityBinding) |
protected void |
finishPreparation(JdbcServices jdbcServices,
JdbcConnectionAccess connectionAccess,
MetadataImplementor metadata,
org.hibernate.hql.spi.id.persistent.PreparationContextImpl context) |
protected void |
initialize(MetadataBuildingOptions buildingOptions,
SessionFactoryOptions sessionFactoryOptions)
Configure ourselves.
|
void |
release(JdbcServices jdbcServices,
JdbcConnectionAccess connectionAccess)
Release the strategy.
|
buildIdTableCreateStatement, buildIdTableDropStatement, getIdTableInfo, getIdTableInfo, getIdTableSupport, prepare
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
prepare
public static final String SHORT_NAME
public static final String DROP_ID_TABLES
public static final String SCHEMA
public static final String CATALOG
public PersistentTableBulkIdStrategy()
public PersistentTableBulkIdStrategy(IdTableSupport idTableSupport)
protected org.hibernate.hql.spi.id.persistent.PreparationContextImpl buildPreparationContext()
buildPreparationContext
in class AbstractMultiTableBulkIdStrategyImpl<org.hibernate.hql.spi.id.persistent.IdTableInfoImpl,org.hibernate.hql.spi.id.persistent.PreparationContextImpl>
protected void initialize(MetadataBuildingOptions buildingOptions, SessionFactoryOptions sessionFactoryOptions)
AbstractMultiTableBulkIdStrategyImpl
initialize
in class AbstractMultiTableBulkIdStrategyImpl<org.hibernate.hql.spi.id.persistent.IdTableInfoImpl,org.hibernate.hql.spi.id.persistent.PreparationContextImpl>
buildingOptions
- Access to user-defined Metadata building optionsprotected QualifiedTableName determineIdTableName(JdbcEnvironment jdbcEnvironment, PersistentClass entityBinding)
determineIdTableName
in class AbstractMultiTableBulkIdStrategyImpl<org.hibernate.hql.spi.id.persistent.IdTableInfoImpl,org.hibernate.hql.spi.id.persistent.PreparationContextImpl>
protected void augmentIdTableDefinition(Table idTable)
augmentIdTableDefinition
in class AbstractMultiTableBulkIdStrategyImpl<org.hibernate.hql.spi.id.persistent.IdTableInfoImpl,org.hibernate.hql.spi.id.persistent.PreparationContextImpl>
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
in class AbstractMultiTableBulkIdStrategyImpl<org.hibernate.hql.spi.id.persistent.IdTableInfoImpl,org.hibernate.hql.spi.id.persistent.PreparationContextImpl>
protected void finishPreparation(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, MetadataImplementor metadata, org.hibernate.hql.spi.id.persistent.PreparationContextImpl context)
finishPreparation
in class AbstractMultiTableBulkIdStrategyImpl<org.hibernate.hql.spi.id.persistent.IdTableInfoImpl,org.hibernate.hql.spi.id.persistent.PreparationContextImpl>
public MultiTableBulkIdStrategy.UpdateHandler buildUpdateHandler(SessionFactoryImplementor factory, HqlSqlWalker walker)
MultiTableBulkIdStrategy
buildUpdateHandler
in interface MultiTableBulkIdStrategy
factory
- The SessionFactorywalker
- The AST walker, representing the update querypublic MultiTableBulkIdStrategy.DeleteHandler buildDeleteHandler(SessionFactoryImplementor factory, HqlSqlWalker walker)
MultiTableBulkIdStrategy
buildDeleteHandler
in interface MultiTableBulkIdStrategy
factory
- The SessionFactorywalker
- The AST walker, representing the delete querypublic void release(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess)
MultiTableBulkIdStrategy
release
in interface MultiTableBulkIdStrategy
jdbcServices
- The JdbcService objectconnectionAccess
- Access to the JDBC ConnectionCopyright © 2019 JBoss by Red Hat. All rights reserved.