public abstract class ComparisonField extends QueryField
Base class that represents one search field.
FieldName, owner
Modifier | Constructor and Description |
---|---|
protected |
ComparisonField(String fieldName,
MailQueryBuilder owner)
Initializes a new instance of the ComparisonField class.
|
Modifier and Type | Method and Description |
---|---|
protected MailQuery |
createKey(String name,
Enum value,
String comparsionOperator)
Creates the search key.
|
protected MailQuery |
createKey(String name,
String value,
String comparsionOperator)
Creates the search key.
|
void |
orderBy(boolean ascending)
Sets value which indicates if client uses ascending or descending sorting on the Field.
|
protected ComparisonField(String fieldName, MailQueryBuilder owner)
Initializes a new instance of the ComparisonField class.
fieldName
- Name of the field.owner
- Owner of ComparisonField object.public final void orderBy(boolean ascending)
Sets value which indicates if client uses ascending or descending sorting on the Field.
ascending
- Set true if you want to use ascending sorting, otherwise set false.protected MailQuery createKey(String name, String value, String comparsionOperator)
Creates the search key.
name
- The field name.value
- The value.comparsionOperator
- The operator.MailQuery
that represents search query.