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 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:
      true if changes were made, false otherwise
    • hasErrors

      default boolean hasErrors(MetisDataItem.MetisDataFieldId pField)
      Determine whether a particular field has Errors.
      Parameters:
      pField - the particular field
      Returns:
      true/false
    • getFieldErrors

      String getFieldErrors(MetisDataItem.MetisDataFieldId pField)
      Obtain error details for a field.
      Parameters:
      pField - the field
      Returns:
      the error details
    • getFieldErrors

      String getFieldErrors(MetisDataItem.MetisDataFieldId[] pFields)
      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

      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

      default boolean skipField(MetisDataItem.MetisDataFieldId pField)
      Should we skip a ValueSet object?.
      Parameters:
      pField - the field
      Returns:
      true/false