Class Criterion
java.lang.Object
com.codename1.backend.document.Criterion
One predicate of a document query: a field, an operator and its operand.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intEqual; a null operand matches a null or missing field.static final intGreater than or equal.static final intGreater than.static final intOne of an array of operands; an empty array matches nothing.static final intLess than or equal.static final intSQLLIKE:%is any run of characters and_any one character.static final intLess than.static final intNot equal; a null operand matches any present, non-null field. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetField()The document field.intgetOp()One of the operator constants.getValue()The operand.static booleanWhethertextmatches a SQLLIKEpattern, case sensitive, without an escape character.booleanWhetherdocsatisfies this predicate, compared the way the stores do: numbers numerically, everything else byequalsor natural order.
-
Field Details
-
EQ
public static final int EQEqual; a null operand matches a null or missing field.- See Also:
-
NE
public static final int NENot equal; a null operand matches any present, non-null field.- See Also:
-
GT
public static final int GTGreater than.- See Also:
-
GE
public static final int GEGreater than or equal.- See Also:
-
LT
public static final int LTLess than.- See Also:
-
LE
public static final int LELess than or equal.- See Also:
-
LIKE
public static final int LIKESQLLIKE:%is any run of characters and_any one character.- See Also:
-
IN
public static final int INOne of an array of operands; an empty array matches nothing.- See Also:
-
-
Constructor Details
-
Criterion
-
-
Method Details
-
getField
The document field. -
getOp
public int getOp()One of the operator constants. -
getValue
The operand. -
like
-
matches
Whetherdocsatisfies this predicate, compared the way the stores do: numbers numerically, everything else byequalsor natural order.
-