org.hibernate.hql.spi
Class TemporaryTableBulkIdStrategy
java.lang.Object
org.hibernate.hql.spi.TemporaryTableBulkIdStrategy
- All Implemented Interfaces:
- MultiTableBulkIdStrategy
public class TemporaryTableBulkIdStrategy
- extends Object
- implements MultiTableBulkIdStrategy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final TemporaryTableBulkIdStrategy INSTANCE
SHORT_NAME
public static final String SHORT_NAME
- See Also:
- Constant Field Values
TemporaryTableBulkIdStrategy
public TemporaryTableBulkIdStrategy()
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:
- 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
- Specified by:
prepare
in interface MultiTableBulkIdStrategy
- Parameters:
jdbcServices
- The JdbcService objectconnectionAccess
- Access to the JDBC Connectionmappings
- The Hibernate Mappings object, for access to O/RM mapping informationmapping
- The Hibernate Mapping contract, mainly for use in DDL generationsettings
- 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 objectconnectionAccess
- 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 SessionFactorywalker
- 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 SessionFactorywalker
- 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-2013 Red Hat, Inc. All Rights Reserved.