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 voidfinishedAttribute(AttributeMapping attribute)List<AttributeAnalysis>getAttributeAnalyses()Descriptors for the analysis of each attributeTableSetgetTablesNeedingUpdate()Descriptor of the tables needing to be updated.TableSetgetTablesWithNonNullValues()Descriptor of the tables which had any non-null value bindingsTableSetgetTablesWithPreviousNonNullValues()Descriptor of the tables which had any non-null value bindingsObject[]getValues()booleanneedsDynamicUpdate()Basically, 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 valuevoidstartingAttribute(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:
getValuesin interfaceUpdateValuesAnalysis
-
getTablesNeedingUpdate
public TableSet getTablesNeedingUpdate()
Description copied from interface:UpdateValuesAnalysisDescriptor of the tables needing to be updated.- Specified by:
getTablesNeedingUpdatein interfaceUpdateValuesAnalysis
-
getTablesWithNonNullValues
public TableSet getTablesWithNonNullValues()
Description copied from interface:UpdateValuesAnalysisDescriptor of the tables which had any non-null value bindings- Specified by:
getTablesWithNonNullValuesin interfaceUpdateValuesAnalysis
-
getTablesWithPreviousNonNullValues
public TableSet getTablesWithPreviousNonNullValues()
Description copied from interface:UpdateValuesAnalysisDescriptor of the tables which had any non-null value bindings- Specified by:
getTablesWithPreviousNonNullValuesin interfaceUpdateValuesAnalysis
-
getAttributeAnalyses
public List<AttributeAnalysis> 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.
-
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)
-
-