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
Constructors Constructor Description UpdateValuesAnalysisImpl(Object[] values, Object[] oldValues, int[] dirtyAttributeIndexes, UpdateCoordinatorStandard.InclusionChecker dirtinessChecker, Object rowId, boolean forceDynamicUpdate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finishedAttribute(AttributeMapping attribute)
List<AttributeAnalysis>
getAttributeAnalyses()
Descriptors for the analysis of each attributeTableSet
getTablesNeedingUpdate()
Descriptor of the tables needing to be updated.TableSet
getTablesWithNonNullValues()
Descriptor of the tables which had any non-null value bindingsTableSet
getTablesWithPreviousNonNullValues()
Descriptor of the tables which had any non-null value bindingsObject[]
getValues()
boolean
needsDynamicUpdate()
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
startingAttribute(AttributeMapping attribute)
Callback at start of processing an attribute
-
-
-
Constructor Detail
-
UpdateValuesAnalysisImpl
public UpdateValuesAnalysisImpl(Object[] values, Object[] oldValues, int[] dirtyAttributeIndexes, UpdateCoordinatorStandard.InclusionChecker dirtinessChecker, Object rowId, boolean forceDynamicUpdate)
-
-
Method Detail
-
getValues
public Object[] getValues()
- Specified by:
getValues
in interfaceUpdateValuesAnalysis
-
getTablesNeedingUpdate
public TableSet getTablesNeedingUpdate()
Description copied from interface:UpdateValuesAnalysis
Descriptor of the tables needing to be updated.- Specified by:
getTablesNeedingUpdate
in interfaceUpdateValuesAnalysis
-
getTablesWithNonNullValues
public TableSet getTablesWithNonNullValues()
Description copied from interface:UpdateValuesAnalysis
Descriptor of the tables which had any non-null value bindings- Specified by:
getTablesWithNonNullValues
in interfaceUpdateValuesAnalysis
-
getTablesWithPreviousNonNullValues
public TableSet getTablesWithPreviousNonNullValues()
Description copied from interface:UpdateValuesAnalysis
Descriptor of the tables which had any non-null value bindings- Specified by:
getTablesWithPreviousNonNullValues
in interfaceUpdateValuesAnalysis
-
getAttributeAnalyses
public List<AttributeAnalysis> 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.
-
startingAttribute
public void startingAttribute(AttributeMapping attribute)
Callback at start of processing an attribute
-
finishedAttribute
public void finishedAttribute(AttributeMapping attribute)
-
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)
-
-