org.hibernate.hql.spi
Interface MultiTableBulkIdStrategy

All Known Implementing Classes:
PersistentTableBulkIdStrategy, TemporaryTableBulkIdStrategy

public interface MultiTableBulkIdStrategy

Generalized strategy contract for handling multi-table bulk HQL operations.


Nested Class Summary
static interface MultiTableBulkIdStrategy.DeleteHandler
          Handler for dealing with multi-table HQL bulk delete statements.
static interface MultiTableBulkIdStrategy.UpdateHandler
          Handler for dealing with multi-table HQL bulk update statements.
 
Method Summary
 MultiTableBulkIdStrategy.DeleteHandler buildDeleteHandler(SessionFactoryImplementor factory, HqlSqlWalker walker)
          Build a handler capable of handling the bulk delete indicated by the given walker.
 MultiTableBulkIdStrategy.UpdateHandler buildUpdateHandler(SessionFactoryImplementor factory, HqlSqlWalker walker)
          Build a handler capable of handling the bulk update indicated by the given walker.
 void prepare(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, Mappings mappings, Mapping mapping, Map settings)
          Prepare the strategy.
 void release(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess)
          Release the strategy.
 

Method Detail

prepare

void prepare(JdbcServices jdbcServices,
             JdbcConnectionAccess connectionAccess,
             Mappings mappings,
             Mapping mapping,
             Map settings)
Prepare the strategy. Called as the SessionFactory is being built. Intended patterns here include:

Parameters:
jdbcServices - The JdbcService object
connectionAccess - Access to the JDBC Connection
mappings - The Hibernate Mappings object, for access to O/RM mapping information
mapping - The Hibernate Mapping contract, mainly for use in DDL generation
settings - Configuration settings

release

void release(JdbcServices jdbcServices,
             JdbcConnectionAccess connectionAccess)
Release the strategy. Called as the SessionFactory is being shut down.

Parameters:
jdbcServices - The JdbcService object
connectionAccess - Access to the JDBC Connection

buildUpdateHandler

MultiTableBulkIdStrategy.UpdateHandler buildUpdateHandler(SessionFactoryImplementor factory,
                                                          HqlSqlWalker walker)
Build a handler capable of handling the bulk update indicated by the given walker.

Parameters:
factory - The SessionFactory
walker - The AST walker, representing the update query
Returns:
The handler

buildDeleteHandler

MultiTableBulkIdStrategy.DeleteHandler buildDeleteHandler(SessionFactoryImplementor factory,
                                                          HqlSqlWalker walker)
Build a handler capable of handling the bulk delete indicated by the given walker.

Parameters:
factory - The SessionFactory
walker - The AST walker, representing the delete query
Returns:
The handler


Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.