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 Dialectprotected final EntityPersisterprotected final SessionFactoryImplementorprotected final MutationExecutorService -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMutationCoordinator(EntityPersister entityPersister, SessionFactoryImplementor factory) -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidapplyKeyRestriction(Object rowId, EntityPersister entityPersister, RestrictedTableMutationBuilder<?, ?> tableMutationBuilder, EntityTableMapping tableMapping) protected voidbindPartitionColumnValueBindings(Object[] loadedState, SharedSessionContractImplementor session, JdbcValueBindings jdbcValueBindings) protected voidbreakDownKeyJdbcValues(Object id, Object rowId, SharedSessionContractImplementor session, JdbcValueBindings jdbcValueBindings, EntityTableMapping tableMapping) protected MutationOperationcreateOperation(ValuesAnalysis valuesAnalysis, TableMutation<?> singleTableMutation) protected MutationOperationGroupcreateOperationGroup(ValuesAnalysis valuesAnalysis, MutationGroup mutationGroup) protected Dialectdialect()protected EntityPersisterprotected SessionFactoryImplementorfactory()protected abstract BatchKeyprotected voidhandleValueGeneration(AttributeMapping attributeMapping, MutationGroupBuilder mutationGroupBuilder, OnExecutionGenerator generator) protected static booleanneedsRowId(EntityPersister entityPersister, EntityTableMapping tableMapping) protected BatchKeyAccessresolveBatchKeyAccess(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)
-