org.hibernate.hql.spi
Class PersistentTableBulkIdStrategy

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

public class PersistentTableBulkIdStrategy
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 String CATALOG
           
static String CLEAN_UP_ID_TABLES
           
static String SCHEMA
           
static String SHORT_NAME
           
 
Constructor Summary
PersistentTableBulkIdStrategy()
           
 
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
 

Field Detail

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
Constructor Detail

PersistentTableBulkIdStrategy

public PersistentTableBulkIdStrategy()
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

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 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

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 SessionFactory
walker - The AST walker, representing the delete query
Returns:
The handler


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