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 TypeMethodDescriptionvoid
finishedAttribute
(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[]
boolean
Basically, can the (static update group be used or is a dynamic update needed.void
registerColumnOptLock
(EntityTableMapping table, String readExpression, Object lockValue) void
registerColumnSet
(EntityTableMapping table, String readExpression, String writeExpression) Callback to register the setting of a column valuevoid
void
startingAttribute
(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:
getValues
in interfaceUpdateValuesAnalysis
-
getTablesNeedingUpdate
Description copied from interface:UpdateValuesAnalysis
Descriptor of the tables needing to be updated.- Specified by:
getTablesNeedingUpdate
in interfaceUpdateValuesAnalysis
-
getTablesWithNonNullValues
Description copied from interface:UpdateValuesAnalysis
Descriptor of the tables which had any non-null value bindings- Specified by:
getTablesWithNonNullValues
in interfaceUpdateValuesAnalysis
-
getTablesWithPreviousNonNullValues
Description copied from interface:UpdateValuesAnalysis
Descriptor of the tables which had any non-null value bindings- Specified by:
getTablesWithPreviousNonNullValues
in interfaceUpdateValuesAnalysis
-
getAttributeAnalyses
Description copied from interface:UpdateValuesAnalysis
Descriptors for the analysis of each attribute- Specified by:
getAttributeAnalyses
in interfaceUpdateValuesAnalysis
-
needsDynamicUpdate
public boolean needsDynamicUpdate()Basically, can the (static update group be used or is a dynamic update needed. -
getTablesNeedingDynamicUpdate
- Specified by:
getTablesNeedingDynamicUpdate
in 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()
-