Class GenericFilter

java.lang.Object
com.appiancorp.common.query.Filter<Object>
com.appiancorp.common.query.GenericFilter
All Implemented Interfaces:
Criteria, com.appiancorp.common.query.ReadOnlyFilter, Serializable

@GwtCompatible public final class GenericFilter extends Filter<Object>

Immutable bean representing a configured Filter on a column.

An instance can only be obtained by using the helper class GenericQuery.GenericBuilder.LogicalOp

See Also:
  • Constructor Details

    • GenericFilter

      protected GenericFilter(String field, FilterOperator operator, Object value)
      Constructs a GenericFilter against the given column or alias using the given value as a constraint.
      Parameters:
      field - the column or alias name
      operator - filter type define as FilterOperator
      value - Object use to constraint the column or alias
  • Method Details

    • getValue

      public Object getValue()
      Description copied from class: Filter
      Returns the value used as a constraint on the column or alias
      Specified by:
      getValue in class Filter<Object>
      Returns:
      the value constraint
    • setValue

      protected void setValue(Object value)
      Specified by:
      setValue in class Filter<Object>
    • copy

      public Criteria copy()