org.hibernate.hql.spi
Class PersistentTableBulkIdStrategy
java.lang.Object
org.hibernate.hql.spi.PersistentTableBulkIdStrategy
- All Implemented Interfaces:
- MultiTableBulkIdStrategy
public class PersistentTableBulkIdStrategy
- extends Object
- implements MultiTableBulkIdStrategy
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 JDBCException |
convert(SessionFactoryImplementor factory,
SQLException e,
String message,
String sql)
|
protected void |
exportTableDefinitions(List<Table> idTableDefinitions,
JdbcServices jdbcServices,
JdbcConnectionAccess connectionAccess,
Mappings mappings,
Mapping mapping)
|
protected Table |
generateIdTableDefinition(PersistentClass entityMapping)
|
void |
prepare(JdbcServices jdbcServices,
JdbcConnectionAccess connectionAccess,
Mappings mappings,
Mapping mapping,
Map settings)
Prepare the strategy. |
void |
release(JdbcServices jdbcServices,
JdbcConnectionAccess connectionAccess)
Release the strategy. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SHORT_NAME
public static final String SHORT_NAME
- See Also:
- Constant Field Values
CLEAN_UP_ID_TABLES
public static final String CLEAN_UP_ID_TABLES
- See Also:
- Constant Field Values
SCHEMA
public static final String SCHEMA
- See Also:
- Constant Field Values
CATALOG
public static final String CATALOG
- See Also:
- Constant Field Values
PersistentTableBulkIdStrategy
public PersistentTableBulkIdStrategy()
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
generateIdTableDefinition
protected Table generateIdTableDefinition(PersistentClass entityMapping)
exportTableDefinitions
protected void exportTableDefinitions(List<Table> idTableDefinitions,
JdbcServices jdbcServices,
JdbcConnectionAccess connectionAccess,
Mappings mappings,
Mapping mapping)
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
convert
protected JDBCException convert(SessionFactoryImplementor factory,
SQLException e,
String message,
String sql)
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
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.