public class TemporaryTableBulkIdStrategy extends Object implements MultiTableBulkIdStrategy
MultiTableBulkIdStrategy.DeleteHandler, MultiTableBulkIdStrategy.UpdateHandler
Modifier and Type | Field and Description |
---|---|
static TemporaryTableBulkIdStrategy |
INSTANCE |
static String |
SHORT_NAME |
Constructor and Description |
---|
TemporaryTableBulkIdStrategy() |
Modifier and Type | Method and Description |
---|---|
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) |
public static final TemporaryTableBulkIdStrategy INSTANCE
public static final String SHORT_NAME
public void prepare(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, Mappings mappings, Mapping mapping, Map settings)
MultiTableBulkIdStrategy
prepare
in interface MultiTableBulkIdStrategy
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 settingspublic void release(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess)
MultiTableBulkIdStrategy
release
in interface MultiTableBulkIdStrategy
jdbcServices
- The JdbcService objectconnectionAccess
- Access to the JDBC Connectionpublic 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 queryprotected void createTempTable(Queryable persister, SessionImplementor session)
protected void releaseTempTable(Queryable persister, SessionImplementor session)
protected boolean shouldIsolateTemporaryTableDDL(SessionImplementor session)
protected boolean shouldTransactIsolatedTemporaryTableDDL(SessionImplementor session)
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.