org.hibernate.hql.spi
Class TemporaryTableBulkIdStrategy

java.lang.Object
  extended by org.hibernate.hql.spi.TemporaryTableBulkIdStrategy
All Implemented Interfaces:
MultiTableBulkIdStrategy

public class TemporaryTableBulkIdStrategy
extends Object
implements MultiTableBulkIdStrategy


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.hibernate.hql.spi.MultiTableBulkIdStrategy
MultiTableBulkIdStrategy.DeleteHandler, MultiTableBulkIdStrategy.UpdateHandler
 
Field Summary
static TemporaryTableBulkIdStrategy INSTANCE
           
static String SHORT_NAME
           
 
Constructor Summary
TemporaryTableBulkIdStrategy()
           
 
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.
protected  void createTempTable(Queryable persister, SessionImplementor session)
           
 void prepare(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, Mappings mappings, Mapping mapping, Map settings)
          Prepare the strategy.
 void release(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess)
          Release the strategy.
protected  void releaseTempTable(Queryable persister, SessionImplementor session)
           
protected  boolean shouldIsolateTemporaryTableDDL(SessionImplementor session)
           
protected  boolean shouldTransactIsolatedTemporaryTableDDL(SessionImplementor session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final TemporaryTableBulkIdStrategy INSTANCE

SHORT_NAME

public static final String SHORT_NAME
See Also:
Constant Field Values
Constructor Detail

TemporaryTableBulkIdStrategy

public TemporaryTableBulkIdStrategy()
Method Detail

prepare

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

Specified by:
prepare in interface MultiTableBulkIdStrategy
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

public void release(JdbcServices jdbcServices,
                    JdbcConnectionAccess connectionAccess)
Description copied from interface: MultiTableBulkIdStrategy
Release the strategy. Called as the SessionFactory is being shut down.

Specified by:
release in interface MultiTableBulkIdStrategy
Parameters:
jdbcServices - The JdbcService object
connectionAccess - Access to the JDBC Connection

buildUpdateHandler

public MultiTableBulkIdStrategy.UpdateHandler buildUpdateHandler(SessionFactoryImplementor factory,
                                                                 HqlSqlWalker walker)
Description copied from interface: MultiTableBulkIdStrategy
Build a handler capable of handling the bulk update indicated by the given walker.

Specified by:
buildUpdateHandler in interface MultiTableBulkIdStrategy
Parameters:
factory - The SessionFactory
walker - The AST walker, representing the update query
Returns:
The handler

buildDeleteHandler

public MultiTableBulkIdStrategy.DeleteHandler buildDeleteHandler(SessionFactoryImplementor factory,
                                                                 HqlSqlWalker walker)
Description copied from interface: MultiTableBulkIdStrategy
Build a handler capable of handling the bulk delete indicated by the given walker.

Specified by:
buildDeleteHandler in interface MultiTableBulkIdStrategy
Parameters:
factory - The SessionFactory
walker - The AST walker, representing the delete query
Returns:
The handler

createTempTable

protected void createTempTable(Queryable persister,
                               SessionImplementor session)

releaseTempTable

protected void releaseTempTable(Queryable persister,
                                SessionImplementor session)

shouldIsolateTemporaryTableDDL

protected boolean shouldIsolateTemporaryTableDDL(SessionImplementor session)

shouldTransactIsolatedTemporaryTableDDL

protected boolean shouldTransactIsolatedTemporaryTableDDL(SessionImplementor session)


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