Top Description Fields Constructors Methods
org.hibernate.hql.spi.id.local

public Class LocalTemporaryTableBulkIdStrategy

extends AbstractMultiTableBulkIdStrategyImpl<IdTableInfoImpl, PreparationContextImpl>
implements MultiTableBulkIdStrategy
Class Inheritance
All Implemented Interfaces
org.hibernate.hql.spi.id.MultiTableBulkIdStrategy
Imports
org.hibernate.boot.TempTableDdlTransactionHandling, org.hibernate.boot.model.relational.SqlStringGenerationContext, org.hibernate.boot.registry.StandardServiceRegistry, org.hibernate.boot.spi.MetadataBuildingOptions, .MetadataImplementor, .SessionFactoryOptions, org.hibernate.engine.config.spi.ConfigurationService, .StandardConverters, org.hibernate.engine.jdbc.connections.spi.JdbcConnectionAccess, org.hibernate.engine.jdbc.spi.JdbcServices, org.hibernate.engine.spi.SessionFactoryImplementor, .SharedSessionContractImplementor, org.hibernate.hql.internal.ast.HqlSqlWalker, org.hibernate.hql.internal.ast.tree.DeleteStatement, .FromElement, .UpdateStatement, org.hibernate.hql.spi.id.AbstractMultiTableBulkIdStrategyImpl, .IdTableHelper, .IdTableSupport, .IdTableSupportStandardImpl, .MultiTableBulkIdStrategy, .TableBasedDeleteHandlerImpl, .TableBasedUpdateHandlerImpl, org.hibernate.mapping.PersistentClass, .Table, org.hibernate.persister.entity.Queryable, org.hibernate.service.ServiceRegistry

Strategy based on ANSI SQL's definition of a "local temporary table" (local to each db session).
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final AfterUseAction
private TempTableDdlTransactionHandling
public static final String
private boolean
private String[]
private ServiceRegistry
public static final String

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public MultiTableBulkIdStrategy.DeleteHandler
buildDeleteHandler(SessionFactoryImplementor
The SessionFactory
factory
,
HqlSqlWalker
The AST walker, representing the delete query
walker
)

Implements org.hibernate.hql.spi.id.MultiTableBulkIdStrategy.buildDeleteHandler.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Build a handler capable of handling the bulk delete indicated by the given walker.
protected IdTableInfoImpl
buildIdTableInfo(PersistentClass entityBinding, Table idTable, JdbcServices jdbcServices, MetadataImplementor metadata, PreparationContextImpl context, SqlStringGenerationContext sqlStringGenerationContext)

Implements abstract org.hibernate.hql.spi.id.AbstractMultiTableBulkIdStrategyImpl.buildIdTableInfo.

Deprecated as a consequence of Table being deprecated.
protected PreparationContextImpl
public MultiTableBulkIdStrategy.UpdateHandler
buildUpdateHandler(SessionFactoryImplementor
The SessionFactory
factory
,
HqlSqlWalker
The AST walker, representing the update query
walker
)

Implements org.hibernate.hql.spi.id.MultiTableBulkIdStrategy.buildUpdateHandler.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Build a handler capable of handling the bulk update indicated by the given walker.
protected void
protected void
initialize(MetadataBuildingOptions
Access to user-defined Metadata building options
buildingOptions
,
SessionFactoryOptions sessionFactoryOptions)

Overrides org.hibernate.hql.spi.id.AbstractMultiTableBulkIdStrategyImpl.initialize.

Configure ourselves.
public void
release(JdbcServices
The JdbcService object
jdbcServices
,
JdbcConnectionAccess
Access to the JDBC Connection
connectionAccess
)

Implements org.hibernate.hql.spi.id.MultiTableBulkIdStrategy.release.

Release the strategy.
Inherited from org.hibernate.hql.spi.id.AbstractMultiTableBulkIdStrategyImpl:
augmentIdTableDefinitionbuildIdTableCreateStatementbuildIdTableDropStatementdetermineIdTableNameformatIdTableNamegetIdTableInfogetIdTableInfogetIdTableSupportprepare

Field Detail

afterUseActionback to summary
private final AfterUseAction afterUseAction
ddlTransactionHandlingback to summary
private TempTableDdlTransactionHandling ddlTransactionHandling
DROP_ID_TABLESback to summary
public static final String DROP_ID_TABLES
dropIdTablesback to summary
private boolean dropIdTables
dropTableStatementsback to summary
private String[] dropTableStatements
serviceRegistryback to summary
private ServiceRegistry serviceRegistry
SHORT_NAMEback to summary
public static final String SHORT_NAME

Constructor Detail

LocalTemporaryTableBulkIdStrategyback to summary
public LocalTemporaryTableBulkIdStrategy()
LocalTemporaryTableBulkIdStrategyback to summary
public LocalTemporaryTableBulkIdStrategy(IdTableSupport idTableSupport, AfterUseAction afterUseAction, TempTableDdlTransactionHandling ddlTransactionHandling)

Method Detail

buildDeleteHandlerback to summary
public MultiTableBulkIdStrategy.DeleteHandler buildDeleteHandler(SessionFactoryImplementor factory, HqlSqlWalker walker)

Implements org.hibernate.hql.spi.id.MultiTableBulkIdStrategy.buildDeleteHandler.

Doc from org.hibernate.hql.spi.id.MultiTableBulkIdStrategy.buildDeleteHandler.

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Build a handler capable of handling the bulk delete indicated by the given walker.

Parameters
factory:SessionFactoryImplementor

The SessionFactory

walker:HqlSqlWalker

The AST walker, representing the delete query

Returns:MultiTableBulkIdStrategy.DeleteHandler

The handler

Annotations
@Override
buildIdTableInfoback to summary
protected IdTableInfoImpl buildIdTableInfo(PersistentClass entityBinding, Table idTable, JdbcServices jdbcServices, MetadataImplementor metadata, PreparationContextImpl context, SqlStringGenerationContext sqlStringGenerationContext)

Implements abstract org.hibernate.hql.spi.id.AbstractMultiTableBulkIdStrategyImpl.buildIdTableInfo.

Deprecated

as a consequence of Table being deprecated. See corresponding docs for further information.

Annotations
@Override
buildPreparationContextback to summary
protected PreparationContextImpl buildPreparationContext()

Overrides org.hibernate.hql.spi.id.AbstractMultiTableBulkIdStrategyImpl.buildPreparationContext.

Annotations
@Override
buildUpdateHandlerback to summary
public MultiTableBulkIdStrategy.UpdateHandler buildUpdateHandler(SessionFactoryImplementor factory, HqlSqlWalker walker)

Implements org.hibernate.hql.spi.id.MultiTableBulkIdStrategy.buildUpdateHandler.

Doc from org.hibernate.hql.spi.id.MultiTableBulkIdStrategy.buildUpdateHandler.

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Build a handler capable of handling the bulk update indicated by the given walker.

Parameters
factory:SessionFactoryImplementor

The SessionFactory

walker:HqlSqlWalker

The AST walker, representing the update query

Returns:MultiTableBulkIdStrategy.UpdateHandler

The handler

Annotations
@Override
finishPreparationback to summary
protected void finishPreparation(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, MetadataImplementor metadata, PreparationContextImpl context)

Overrides org.hibernate.hql.spi.id.AbstractMultiTableBulkIdStrategyImpl.finishPreparation.

Annotations
@Override
initializeback to summary
protected void initialize(MetadataBuildingOptions buildingOptions, SessionFactoryOptions sessionFactoryOptions)

Overrides org.hibernate.hql.spi.id.AbstractMultiTableBulkIdStrategyImpl.initialize.

Doc from org.hibernate.hql.spi.id.AbstractMultiTableBulkIdStrategyImpl.initialize.

Configure ourselves. By default, nothing to do; here totally for subclass hook-in

Parameters
buildingOptions:MetadataBuildingOptions

Access to user-defined Metadata building options

Annotations
@Override
releaseback to summary
public void release(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess)

Implements org.hibernate.hql.spi.id.MultiTableBulkIdStrategy.release.

Doc from org.hibernate.hql.spi.id.MultiTableBulkIdStrategy.release.

Release the strategy. Called as the SessionFactory is being shut down.

Parameters
jdbcServices:JdbcServices

The JdbcService object

connectionAccess:JdbcConnectionAccess

Access to the JDBC Connection

Annotations
@Override