Interface MetisFieldItem.MetisFieldUpdatableItem
- All Known Subinterfaces:
PrometheusTableItem
- All Known Implementing Classes:
MetisFieldVersionedItem,PrometheusControlData,PrometheusControlKey,PrometheusControlKeySet,PrometheusDataInfoItem,PrometheusDataInfoLinkSet,PrometheusDataItem,PrometheusDataKeySet,PrometheusEncryptedDataItem,PrometheusStaticDataItem
- Enclosing interface:
MetisFieldItem
public static interface MetisFieldItem.MetisFieldUpdatableItem
Updateable Item interface.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck to see whether any changes were made.Obtain error details for a field.getFieldErrors(MetisDataItem.MetisDataFieldId[] pFields) Obtain error details for a set of fields.intObtain the next version for the history.Obtain original Object ValueSet.Obtain Object ValueSet.Obtain Object ValueSet History.default booleanDetermine whether a particular field has Errors.default booleanIs the item editable?voidRemove the last changes for the history buffer and restore values from it.voidPush current values into history buffer ready for changes to be made.default booleanShould we skip a ValueSet object?.
-
Method Details
-
pushHistory
void pushHistory()Push current values into history buffer ready for changes to be made. -
getNextVersion
int getNextVersion()Obtain the next version for the history.- Returns:
- the next version
-
popHistory
void popHistory()Remove the last changes for the history buffer and restore values from it. -
checkForHistory
boolean checkForHistory()Check to see whether any changes were made. If no changes were made remove last saved history since it is not needed.- Returns:
trueif changes were made,falseotherwise
-
hasErrors
Determine whether a particular field has Errors.- Parameters:
pField- the particular field- Returns:
true/false
-
getFieldErrors
Obtain error details for a field.- Parameters:
pField- the field- Returns:
- the error details
-
getFieldErrors
Obtain error details for a set of fields.- Parameters:
pFields- the fields- Returns:
- the error details
-
isEditable
default boolean isEditable()Is the item editable?- Returns:
- true/false
-
getValues
MetisFieldVersionValues getValues()Obtain Object ValueSet.- Returns:
- the ValueSet of the object
-
getOriginalValues
MetisFieldVersionValues getOriginalValues()Obtain original Object ValueSet.- Returns:
- the ValueSet of the object
-
getValuesHistory
MetisFieldVersionHistory getValuesHistory()Obtain Object ValueSet History.- Returns:
- the ValueSet of the object
-
skipField
Should we skip a ValueSet object?.- Parameters:
pField- the field- Returns:
- true/false
-