Top Description Inners Fields Constructors Methods
org.hibernate.hql.spi.id

public abstract Class AbstractMultiTableBulkIdStrategyImpl<TT extends org.hibernate.hql.spi.id.IdTableInfo, CT extends AbstractMultiTableBulkIdStrategyImpl.PreparationContext>

extends Object
implements MultiTableBulkIdStrategy
Class Inheritance
All Implemented Interfaces
org.hibernate.hql.spi.id.MultiTableBulkIdStrategy
Known Direct Subclasses
org.hibernate.hql.spi.id.global.GlobalTemporaryTableBulkIdStrategy, org.hibernate.hql.spi.id.local.LocalTemporaryTableBulkIdStrategy, org.hibernate.hql.spi.id.persistent.PersistentTableBulkIdStrategy
Imports
java.util.HashMap, .Iterator, .Map, org.hibernate.QueryException, org.hibernate.boot.model.relational.QualifiedTableName, .SqlStringGenerationContext, org.hibernate.boot.spi.MetadataBuildingOptions, .MetadataImplementor, .SessionFactoryOptions, org.hibernate.dialect.Dialect, org.hibernate.engine.jdbc.connections.spi.JdbcConnectionAccess, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment, org.hibernate.engine.jdbc.spi.JdbcServices, org.hibernate.mapping.Column, .PersistentClass, .Table, org.hibernate.persister.entity.Queryable

Convenience base class for MultiTableBulkIdStrategy implementations.
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Field Summary

Modifier and TypeField and Description
private Map<String, TT>
private final IdTableSupport

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
augmentIdTableDefinition(Table idTable)

Deprecated as a consequence of Table being deprecated.
protected String
buildIdTableCreateStatement(Table idTable, MetadataImplementor metadata, SqlStringGenerationContext sqlStringGenerationContext)

Deprecated as a consequence of Table being deprecated.
protected String
buildIdTableDropStatement(Table idTable, SqlStringGenerationContext sqlStringGenerationContext)

Deprecated as a consequence of Table being deprecated.
protected abstract TT
buildIdTableInfo(PersistentClass entityBinding, Table idTable, JdbcServices jdbcServices, MetadataImplementor metadata, CT context, SqlStringGenerationContext sqlStringGenerationContext)

Deprecated as a consequence of Table being deprecated.
protected CT
protected QualifiedTableName
determineIdTableName(JdbcEnvironment jdbcEnvironment, PersistentClass entityBinding)

protected void
finishPreparation(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, MetadataImplementor metadata, CT context)

protected String
formatIdTableName(QualifiedTableName qualifiedTableName, SqlStringGenerationContext sqlStringGenerationContext)

protected TT
getIdTableInfo(Queryable targetedPersister)

protected TT
getIdTableInfo(String entityName)

public IdTableSupport
protected void
initialize(MetadataBuildingOptions
Access to user-defined Metadata building options
buildingOptions
,
SessionFactoryOptions sessionFactoryOptions)

Configure ourselves.

public final void
prepare(JdbcServices
The JdbcService object
jdbcServices
,
JdbcConnectionAccess
Access to the JDBC Connection
connectionAccess
,
MetadataImplementor
Access to the O/RM mapping information
metadata
,
SessionFactoryOptions sessionFactoryOptions, SqlStringGenerationContext sqlStringGenerationContext)

Overrides default org.hibernate.hql.spi.id.MultiTableBulkIdStrategy.prepare.

Prepare the strategy.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

idTableInfoMapback to summary
private Map<String, TT> idTableInfoMap
idTableSupportback to summary
private final IdTableSupport idTableSupport

Constructor Detail

AbstractMultiTableBulkIdStrategyImplback to summary
public AbstractMultiTableBulkIdStrategyImpl(IdTableSupport idTableSupport)

Method Detail

augmentIdTableDefinitionback to summary
protected void augmentIdTableDefinition(Table idTable)

Deprecated

as a consequence of Table being deprecated. See corresponding docs for further information.

buildIdTableCreateStatementback to summary
protected String buildIdTableCreateStatement(Table idTable, MetadataImplementor metadata, SqlStringGenerationContext sqlStringGenerationContext)

Deprecated

as a consequence of Table being deprecated. See corresponding docs for further information.

buildIdTableDropStatementback to summary
protected String buildIdTableDropStatement(Table idTable, SqlStringGenerationContext sqlStringGenerationContext)

Deprecated

as a consequence of Table being deprecated. See corresponding docs for further information.

buildIdTableInfoback to summary
protected abstract TT buildIdTableInfo(PersistentClass entityBinding, Table idTable, JdbcServices jdbcServices, MetadataImplementor metadata, CT context, SqlStringGenerationContext sqlStringGenerationContext)

Deprecated

as a consequence of Table being deprecated. See corresponding docs for further information.

buildPreparationContextback to summary
protected CT buildPreparationContext()
determineIdTableNameback to summary
protected QualifiedTableName determineIdTableName(JdbcEnvironment jdbcEnvironment, PersistentClass entityBinding)
finishPreparationback to summary
protected void finishPreparation(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, MetadataImplementor metadata, CT context)
formatIdTableNameback to summary
protected String formatIdTableName(QualifiedTableName qualifiedTableName, SqlStringGenerationContext sqlStringGenerationContext)
getIdTableInfoback to summary
protected TT getIdTableInfo(Queryable targetedPersister)
getIdTableInfoback to summary
protected TT getIdTableInfo(String entityName)
getIdTableSupportback to summary
public IdTableSupport getIdTableSupport()
initializeback to summary
protected void initialize(MetadataBuildingOptions buildingOptions, SessionFactoryOptions sessionFactoryOptions)

Configure ourselves. By default, nothing to do; here totally for subclass hook-in

Parameters
buildingOptions:MetadataBuildingOptions

Access to user-defined Metadata building options

prepareback to summary
public final void prepare(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, MetadataImplementor metadata, SessionFactoryOptions sessionFactoryOptions, SqlStringGenerationContext sqlStringGenerationContext)

Overrides default org.hibernate.hql.spi.id.MultiTableBulkIdStrategy.prepare.

Doc from org.hibernate.hql.spi.id.MultiTableBulkIdStrategy.prepare.

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
Parameters
jdbcServices:JdbcServices

The JdbcService object

connectionAccess:JdbcConnectionAccess

Access to the JDBC Connection

metadata:MetadataImplementor

Access to the O/RM mapping information

Annotations
@Override
org.hibernate.hql.spi.id back to summary

public Interface AbstractMultiTableBulkIdStrategyImpl.PreparationContext

Known Direct Implementers
org.hibernate.hql.spi.id.global.PreparationContextImpl, org.hibernate.hql.spi.id.local.PreparationContextImpl, org.hibernate.hql.spi.id.persistent.PreparationContextImpl