Class UpdateCoordinatorStandard.UpdateValuesAnalysisImpl
java.lang.Object
org.hibernate.persister.entity.mutation.UpdateCoordinatorStandard.UpdateValuesAnalysisImpl
- All Implemented Interfaces:
UpdateValuesAnalysis,ValuesAnalysis
- Enclosing class:
- UpdateCoordinatorStandard
protected class UpdateCoordinatorStandard.UpdateValuesAnalysisImpl
extends Object
implements UpdateValuesAnalysis
Contains the aggregated analysis of the update values to determine
what SQL UPDATE statement(s) should be used to update the entity
and to drive parameter binding
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateValuesAnalysisImpl(Object[] values, Object[] oldValues, int[] dirtyAttributeIndexes, UpdateCoordinatorStandard.InclusionChecker dirtinessChecker, Object rowId, boolean forceDynamicUpdate) -
Method Summary
Modifier and TypeMethodDescriptionvoidfinishedAttribute(AttributeMapping attribute) Descriptors for the analysis of each attributeDescriptor of the tables needing to be updated.Descriptor of the tables which had any non-null value bindingsDescriptor of the tables which had any non-null value bindingsObject[]booleanBasically, can the (static update group be used or is a dynamic update needed.voidregisterColumnOptLock(EntityTableMapping table, String readExpression, Object lockValue) voidregisterColumnSet(EntityTableMapping table, String readExpression, String writeExpression) Callback to register the setting of a column valuevoidvoidstartingAttribute(AttributeMapping attribute) Callback at start of processing an attribute
-
Constructor Details
-
UpdateValuesAnalysisImpl
public UpdateValuesAnalysisImpl(Object[] values, Object[] oldValues, int[] dirtyAttributeIndexes, UpdateCoordinatorStandard.InclusionChecker dirtinessChecker, Object rowId, boolean forceDynamicUpdate)
-
-
Method Details
-
getValues
- Specified by:
getValuesin interfaceUpdateValuesAnalysis
-
getTablesNeedingUpdate
Description copied from interface:UpdateValuesAnalysisDescriptor of the tables needing to be updated.- Specified by:
getTablesNeedingUpdatein interfaceUpdateValuesAnalysis
-
getTablesWithNonNullValues
Description copied from interface:UpdateValuesAnalysisDescriptor of the tables which had any non-null value bindings- Specified by:
getTablesWithNonNullValuesin interfaceUpdateValuesAnalysis
-
getTablesWithPreviousNonNullValues
Description copied from interface:UpdateValuesAnalysisDescriptor of the tables which had any non-null value bindings- Specified by:
getTablesWithPreviousNonNullValuesin interfaceUpdateValuesAnalysis
-
getAttributeAnalyses
Description copied from interface:UpdateValuesAnalysisDescriptors for the analysis of each attribute- Specified by:
getAttributeAnalysesin interfaceUpdateValuesAnalysis
-
needsDynamicUpdate
public boolean needsDynamicUpdate()Basically, can the (static update group be used or is a dynamic update needed. -
getTablesNeedingDynamicUpdate
- Specified by:
getTablesNeedingDynamicUpdatein interfaceUpdateValuesAnalysis
-
startingAttribute
Callback at start of processing an attribute -
finishedAttribute
-
registerColumnSet
public void registerColumnSet(EntityTableMapping table, String readExpression, String writeExpression) Callback to register the setting of a column value -
registerColumnOptLock
public void registerColumnOptLock(EntityTableMapping table, String readExpression, Object lockValue) -
registerValueGeneratedInSqlNoWrite
public void registerValueGeneratedInSqlNoWrite()
-