Filter which compares the result of a method invocation with a value for "Between" condition. We use the standard ISO/IEC 9075:1992 semantic, according to which "X between Y and Z" is equivalent to "X >= Y && X <= Z". In a case when either result of a method invocation or a value to compare are equal to null, the evaluate test yields false. This approach is equivalent to the way the NULL values are handled by SQL.

Hierarchy

Constructors

Properties

Methods

Constructors

  • Construct a BetweenFilter for testing "Between" condition.

    Parameters

    • extractorOrMethod: string | ValueExtractor

      the ValueExtractor used by this filter or the name of the method to invoke via reflection

    • from: number

      the lower bound of the range

    • to: number

      the upper bound of the range

    • includeLowerBound: boolean = false

      a flag indicating whether values matching the lower bound evaluate to true

    • includeUpperBound: boolean = false

      a flag indicating whether values matching the upper bound evaluate to true

    Returns BetweenFilter

Properties

@class: string

Server-side Filter implementation type identifier.

filters: Filter[]

The Filter array

from: number

Lower bound of range.

to: number

Upper bound of range.

Methods

  • Return a composed filter that represents a short-circuiting logical AND of this filter and another. When evaluating the composed filter, if this filter is `false, then the other filter is not evaluated.

    Any exceptions thrown during evaluation of either filter are relayed to the caller; if evaluation of this filter throws an exception, the *other* filter will not be evaluated.

    @param other a filter that will be logically-ANDed with this filter

    @return a composed filter that represents the short-circuiting logical AND of this filter and the other filter

    Parameters

    Returns Filter

  • Return a filter that will only be evaluated within specified key set.

    Returns

    a key set-limited filter

    Type Parameters

    • K = any

    Parameters

    • keys: Set<K>

      the set of keys to limit the filter evaluation to

    Returns InKeySetFilter<K>

  • Return a composed predicate that represents a short-circuiting logical OR of this predicate and another. When evaluating the composed predicate, if this predicate is true, then the other predicate is not evaluated.

    Any exceptions thrown during evaluation of either predicate are relayed to the caller; if evaluation of this predicate throws an exception, the *other* predicate will not be evaluated.

    Returns

    a composed predicate that represents the short-circuiting logical OR of this predicate and the other predicate

    Parameters

    • other: Filter

      a predicate that will be logically-ORed with this predicate

    Returns Filter

  • Return a composed predicate that represents a logical XOR of this predicate and another.

    Any exceptions thrown during evaluation of either predicate are relayed to the caller; if evaluation of this predicate throws an exception, the other predicate will not be evaluated.

    Returns

    a composed predicate that represents the logical XOR of this predicate and the 'other' predicate

    Parameters

    • other: Filter

      a predicate that will be logically-XORed with this predicate

    Returns Filter