Class AbstractMutationCoordinator
java.lang.Object
org.hibernate.persister.entity.mutation.AbstractMutationCoordinator
- Direct Known Subclasses:
AbstractDeleteCoordinator
,InsertCoordinatorStandard
,UpdateCoordinatorStandard
Base support for coordinating mutations against an entity
- Implementation Note:
- Split simply to help minimize the size of
AbstractEntityPersister
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Dialect
protected final EntityPersister
protected final SessionFactoryImplementor
protected final MutationExecutorService
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractMutationCoordinator
(EntityPersister entityPersister, SessionFactoryImplementor factory) -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
applyKeyRestriction
(Object rowId, EntityPersister entityPersister, RestrictedTableMutationBuilder<?, ?> tableMutationBuilder, EntityTableMapping tableMapping) protected void
bindPartitionColumnValueBindings
(Object[] loadedState, SharedSessionContractImplementor session, JdbcValueBindings jdbcValueBindings) protected void
breakDownKeyJdbcValues
(Object id, Object rowId, SharedSessionContractImplementor session, JdbcValueBindings jdbcValueBindings, EntityTableMapping tableMapping) protected MutationOperation
createOperation
(ValuesAnalysis valuesAnalysis, TableMutation<?> singleTableMutation) protected MutationOperationGroup
createOperationGroup
(ValuesAnalysis valuesAnalysis, MutationGroup mutationGroup) protected Dialect
dialect()
protected EntityPersister
protected SessionFactoryImplementor
factory()
protected abstract BatchKey
protected void
handleValueGeneration
(AttributeMapping attributeMapping, MutationGroupBuilder mutationGroupBuilder, OnExecutionGenerator generator) protected static boolean
needsRowId
(EntityPersister entityPersister, EntityTableMapping tableMapping) protected BatchKeyAccess
resolveBatchKeyAccess
(boolean dynamicUpdate, SharedSessionContractImplementor session)
-
Field Details
-
entityPersister
-
factory
-
mutationExecutorService
-
dialect
-
-
Constructor Details
-
AbstractMutationCoordinator
public AbstractMutationCoordinator(EntityPersister entityPersister, SessionFactoryImplementor factory)
-
-
Method Details
-
entityPersister
-
factory
-
dialect
-
getBatchKey
-
createOperationGroup
protected MutationOperationGroup createOperationGroup(ValuesAnalysis valuesAnalysis, MutationGroup mutationGroup) -
createOperation
protected MutationOperation createOperation(ValuesAnalysis valuesAnalysis, TableMutation<?> singleTableMutation) -
handleValueGeneration
protected void handleValueGeneration(AttributeMapping attributeMapping, MutationGroupBuilder mutationGroupBuilder, OnExecutionGenerator generator) -
needsRowId
protected static boolean needsRowId(EntityPersister entityPersister, EntityTableMapping tableMapping) -
applyKeyRestriction
protected static void applyKeyRestriction(Object rowId, EntityPersister entityPersister, RestrictedTableMutationBuilder<?, ?> tableMutationBuilder, EntityTableMapping tableMapping)
-