Class PivotCacheFieldImpl

java.lang.Object
io.keikai.model.impl.PivotCacheFieldImpl
All Implemented Interfaces:
SPivotCacheField, Serializable

public class PivotCacheFieldImpl extends Object implements SPivotCacheField, Serializable
Default implementation of SPivotCacheField.
Since:
7.0.0
See Also:
  • Constructor Details

    • PivotCacheFieldImpl

      public PivotCacheFieldImpl(String name, int index)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: SPivotCacheField
      Returns the field name (typically the column header).
      Specified by:
      getName in interface SPivotCacheField
      Returns:
      the field name
    • getIndex

      public int getIndex()
      Description copied from interface: SPivotCacheField
      Returns the zero-based index of this field in the cache.
      Specified by:
      getIndex in interface SPivotCacheField
      Returns:
      the field index
    • getSharedItems

      public List<Object> getSharedItems()
      Description copied from interface: SPivotCacheField
      Returns the unique (shared) values found in this field.
      Specified by:
      getSharedItems in interface SPivotCacheField
      Returns:
      list of unique values
    • addSharedItem

      public void addSharedItem(Object value)
      Adds a shared item value.
      Parameters:
      value - the value to add
    • isNumericField

      public boolean isNumericField()
      Description copied from interface: SPivotCacheField
      Returns whether this field contains numeric data.
      Specified by:
      isNumericField in interface SPivotCacheField
      Returns:
      true if numeric
    • setNumericField

      public void setNumericField(boolean numericField)
    • isDateField

      public boolean isDateField()
      Description copied from interface: SPivotCacheField
      Returns whether this field contains date data.
      Specified by:
      isDateField in interface SPivotCacheField
      Returns:
      true if date
    • setDateField

      public void setDateField(boolean dateField)
    • isTextField

      public boolean isTextField()
      Description copied from interface: SPivotCacheField
      Returns whether this field contains text data.
      Specified by:
      isTextField in interface SPivotCacheField
      Returns:
      true if text
    • setTextField

      public void setTextField(boolean textField)
    • getGrouping

      public SPivotFieldGrouping getGrouping()
      Description copied from interface: SPivotCacheField
      Returns the grouping configuration for this field, or null if ungrouped.
      Specified by:
      getGrouping in interface SPivotCacheField
      Returns:
      the grouping, or null
    • setGrouping

      public void setGrouping(SPivotFieldGrouping grouping)