public enum MiscellaneousOperator extends Enum<MiscellaneousOperator> implements Operator
Enum Constant and Description |
---|
ALL
Operator to ensure that all values provided in the operand existing in
the array field.
|
ELEMENT_MATCH
Provides the ability to match an entire array element at once.
|
EXISTS
Check to see if a field exists or not.
|
IN
Checks if a value for a field is present in the operand array.
|
MOD
Performs a modulo operation on a field and is equivalent to the where
statement
field % d == m . |
NIN
Checks if a value for a field is not present in the operand array.
|
REG_EX
Test if a field matches a specified regular expression.
|
SIZE
Compares the length of the array field.
|
TYPE
Check if a value's type matches the expected type.
|
WHERE
Support for an ad-hoc JavaScript expression.
|
Modifier and Type | Method and Description |
---|---|
String |
getToken()
The token for the operator that can be sent to the server.
|
static MiscellaneousOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MiscellaneousOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MiscellaneousOperator ALL
public static final MiscellaneousOperator ELEMENT_MATCH
public static final MiscellaneousOperator EXISTS
public static final MiscellaneousOperator IN
public static final MiscellaneousOperator MOD
field % d == m
.public static final MiscellaneousOperator NIN
public static final MiscellaneousOperator REG_EX
public static final MiscellaneousOperator SIZE
public static final MiscellaneousOperator TYPE
public static final MiscellaneousOperator WHERE
public static MiscellaneousOperator[] values()
for (MiscellaneousOperator c : MiscellaneousOperator.values()) System.out.println(c);
public static MiscellaneousOperator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.