Class FieldResultBean

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    CustomConditionBean

    public class FieldResultBean
    extends java.lang.Object
    implements java.io.Serializable
    A bean that represents the value that was entered in a field of a form.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      FieldResultBean​(com.saperion.intf.SaPropertyValue propValue, com.saperion.ngc.iform.xml.LimitType limitValue, java.lang.String databaseFieldName)
      Constructor.
      FieldResultBean​(com.saperion.intf.SaPropertyValue propValue, com.saperion.ngc.iform.xml.LimitType limitValue, java.lang.String databaseFieldName, boolean wasCleared)
      Constructor.
      FieldResultBean​(IntelligentField field, com.saperion.intf.SaValue[] values, boolean wasCleared)
      Constructor for field-usage.
      FieldResultBean​(java.lang.String name, java.lang.String databaseFieldName, com.saperion.ngc.iform.xml.LimitType limitValue, com.saperion.intf.SaValue[] values, int type, boolean multi)
      Constructor.
    • Constructor Detail

      • FieldResultBean

        public FieldResultBean​(java.lang.String name,
                               java.lang.String databaseFieldName,
                               com.saperion.ngc.iform.xml.LimitType limitValue,
                               com.saperion.intf.SaValue[] values,
                               int type,
                               boolean multi)
        Constructor.
        Parameters:
        name - Fieldname
        databaseFieldName - The name of the database field name
        limitValue - Limit
        values - Values
        type - FieldType
        multi - Is multivalue
      • FieldResultBean

        public FieldResultBean​(IntelligentField field,
                               com.saperion.intf.SaValue[] values,
                               boolean wasCleared)
        Constructor for field-usage.
        Parameters:
        field - intelligent field
        values - values
        wasCleared - field was cleared
      • FieldResultBean

        public FieldResultBean​(com.saperion.intf.SaPropertyValue propValue,
                               com.saperion.ngc.iform.xml.LimitType limitValue,
                               java.lang.String databaseFieldName)
        Constructor.
        Parameters:
        propValue - Property value
        limitValue - Limit
        databaseFieldName - The name of the database field name
      • FieldResultBean

        public FieldResultBean​(com.saperion.intf.SaPropertyValue propValue,
                               com.saperion.ngc.iform.xml.LimitType limitValue,
                               java.lang.String databaseFieldName,
                               boolean wasCleared)
        Constructor.
        Parameters:
        propValue - Property value
        limitValue - Limit
        databaseFieldName - The name of the database field name
        wasCleared - field was cleared
    • Method Detail

      • getFieldName

        public final java.lang.String getFieldName()
        Returns:
        the fieldName
      • getLimit

        public final com.saperion.ngc.iform.xml.LimitType getLimit()
        Returns:
        the limit
      • getValue

        public final com.saperion.intf.SaValue[] getValue()
        Returns:
        the value
      • getFieldType

        public final int getFieldType()
        Returns:
        the fieldType
      • isMultiValue

        public final boolean isMultiValue()
        Returns:
        the multiValue
      • getDatabaseFieldName

        public final java.lang.String getDatabaseFieldName()
        Returns:
        the name of the field as stored in the database
      • isCleared

        public final boolean isCleared()
        Returns:
        true if the field's value was cleared
      • setSearchMode

        public void setSearchMode​(FieldSearchMode searchMode)
        Sets the search mode for this field.
        Parameters:
        searchMode - search mode
        See Also:
        FieldSearchMode
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object