public abstract class AbstractMultiTableBulkIdStrategyImpl<TT extends IdTableInfo,CT extends AbstractMultiTableBulkIdStrategyImpl.PreparationContext> extends Object implements MultiTableBulkIdStrategy
Convenience base class for MultiTableBulkIdStrategy implementations.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractMultiTableBulkIdStrategyImpl.PreparationContext |
MultiTableBulkIdStrategy.DeleteHandler, MultiTableBulkIdStrategy.UpdateHandler| Constructor and Description |
|---|
AbstractMultiTableBulkIdStrategyImpl(IdTableSupport idTableSupport) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildDeleteHandler, buildUpdateHandler, releasepublic AbstractMultiTableBulkIdStrategyImpl(IdTableSupport idTableSupport)
public IdTableSupport getIdTableSupport()
public final void prepare(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, MetadataImplementor metadata, SessionFactoryOptions sessionFactoryOptions)
MultiTableBulkIdStrategyPrepare the strategy. Called as the SessionFactory is being built. Intended patterns here include:<ul> <li>Adding tables to the passed Mappings, to be picked by by "schema management tools"</li> <li>Manually creating the tables immediately through the passed JDBC Connection access</li> </ul>
prepare in interface MultiTableBulkIdStrategyjdbcServices - The JdbcService objectconnectionAccess - Access to the JDBC Connectionmetadata - Access to the O/RM mapping informationprotected CT buildPreparationContext()
protected void initialize(MetadataBuildingOptions buildingOptions, SessionFactoryOptions sessionFactoryOptions)
Configure ourselves. By default, nothing to do; here totally for subclass hook-in
buildingOptions - Access to user-defined Metadata building optionssessionFactoryOptions - protected QualifiedTableName determineIdTableName(JdbcEnvironment jdbcEnvironment, PersistentClass entityBinding)
protected void augmentIdTableDefinition(Table idTable)
protected abstract TT buildIdTableInfo(PersistentClass entityBinding, Table idTable, JdbcServices jdbcServices, MetadataImplementor metadata, CT context)
protected String buildIdTableCreateStatement(Table idTable, JdbcServices jdbcServices, MetadataImplementor metadata)
protected String buildIdTableDropStatement(Table idTable, JdbcServices jdbcServices)
protected void finishPreparation(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, MetadataImplementor metadata, CT context)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.