public abstract class AbstractMultiTableBulkIdStrategyImpl<TT extends IdTableInfo,CT extends AbstractMultiTableBulkIdStrategyImpl.PreparationContext> extends java.lang.Object implements MultiTableBulkIdStrategy
Modifier and Type | Class and Description |
---|---|
static interface |
AbstractMultiTableBulkIdStrategyImpl.PreparationContext |
MultiTableBulkIdStrategy.DeleteHandler, MultiTableBulkIdStrategy.UpdateHandler
Constructor and Description |
---|
AbstractMultiTableBulkIdStrategyImpl(IdTableSupport idTableSupport) |
Modifier and Type | Method and Description |
---|---|
protected void |
augmentIdTableDefinition(Table idTable) |
protected java.lang.String |
buildIdTableCreateStatement(Table idTable,
JdbcServices jdbcServices,
MetadataImplementor metadata) |
protected java.lang.String |
buildIdTableDropStatement(Table idTable,
JdbcServices jdbcServices) |
protected abstract TT |
buildIdTableInfo(PersistentClass entityBinding,
Table idTable,
JdbcServices jdbcServices,
MetadataImplementor metadata,
CT context) |
protected CT |
buildPreparationContext() |
protected QualifiedTableName |
determineIdTableName(JdbcEnvironment jdbcEnvironment,
PersistentClass entityBinding) |
protected void |
finishPreparation(JdbcServices jdbcServices,
JdbcConnectionAccess connectionAccess,
MetadataImplementor metadata,
CT context) |
protected TT |
getIdTableInfo(Queryable targetedPersister) |
protected TT |
getIdTableInfo(java.lang.String entityName) |
IdTableSupport |
getIdTableSupport() |
protected void |
initialize(MetadataBuildingOptions buildingOptions,
SessionFactoryOptions sessionFactoryOptions)
Configure ourselves.
|
void |
prepare(JdbcServices jdbcServices,
JdbcConnectionAccess connectionAccess,
MetadataImplementor metadata,
SessionFactoryOptions sessionFactoryOptions)
Prepare the strategy.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildDeleteHandler, buildUpdateHandler, release
public AbstractMultiTableBulkIdStrategyImpl(IdTableSupport idTableSupport)
public IdTableSupport getIdTableSupport()
public final void prepare(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, MetadataImplementor metadata, SessionFactoryOptions sessionFactoryOptions)
MultiTableBulkIdStrategy
prepare
in interface MultiTableBulkIdStrategy
jdbcServices
- The JdbcService objectconnectionAccess
- Access to the JDBC Connectionmetadata
- Access to the O/RM mapping informationprotected CT buildPreparationContext()
protected void initialize(MetadataBuildingOptions buildingOptions, SessionFactoryOptions sessionFactoryOptions)
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 java.lang.String buildIdTableCreateStatement(Table idTable, JdbcServices jdbcServices, MetadataImplementor metadata)
protected java.lang.String buildIdTableDropStatement(Table idTable, JdbcServices jdbcServices)
protected void finishPreparation(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, MetadataImplementor metadata, CT context)
protected TT getIdTableInfo(java.lang.String entityName)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.