Show:

The class of complex predicate which include multiple predicates unioned with logical condition.

Constructor

ComplexPredicate

(
  • condition
  • predicates
)

Parameters:

  • condition Query.Condition

    Logical condition for predicates.

  • predicates Query.BasePredicate multiple

    List of predicates for combining.

Methods

and

(
  • predicates
)
Query.ComplexPredicate public

Combines specified predicates using and logic condition.

Parameters:

  • predicates Query.BasePredicate multiple

    List of predicates for combining.

Returns:

Query.ComplexPredicate:

Combined complex predicate with and logic.

createPredicate

(
  • args
)
BasePredicate

Creates predicate by various parameters.

Parameters:

  • args Object

    Arguments for the predicate.

Returns:

or

(
  • predicates
)
Query.ComplexPredicate public

Combines specified predicates using or logic condition.

Parameters:

  • predicates Query.BasePredicate multiple

    List of predicates for combining.

Returns:

Query.ComplexPredicate:

Combined complex predicate with or logic.

stringToPredicate

(
  • stringPredicate
)
BasePredicate

Convert string to predicate.

Parameters:

Returns:

toString

() String public

Converts this instance to string.

Returns:

String:

Text representation of the predicate.