Interface MetisFieldItem.MetisFieldDef

All Known Subinterfaces:
MetisFieldItem.MetisFieldVersionedDef
All Known Implementing Classes:
MetisField, MetisFieldVersioned, PrometheusEncryptedField
Enclosing interface:
MetisFieldItem

public static interface MetisFieldItem.MetisFieldDef
Field interface.
  • Method Details

    • getFieldId

      Obtain the id of the field.
      Returns:
      the name of the field.
    • getDataType

      MetisDataType getDataType()
      Get the dataType of the field.
      Returns:
      the dataType
    • getMaxLength

      Integer getMaxLength()
      Get the maximum length.
      Returns:
      the maxLength
    • isCalculated

      boolean isCalculated()
      Is the field calculated?
      Returns:
      true/false
    • getFieldValue

      Object getFieldValue(Object pObject)
      Obtain the value of a field.
      Parameters:
      pObject - the object
      Returns:
      the value
    • getFieldValue

      <X> X getFieldValue(Object pObject, Class<X> pClazz)
      Obtain the value of a field cast to a particular class.
      Type Parameters:
      X - the value type
      Parameters:
      pObject - the object
      pClazz - the class of the value
      Returns:
      the value