Sequenceablepublic class DataAbilityPredicates extends Object implements Sequenceable
This class allows your application to query data with exact match, fuzzy match, or aggregate method.
SystemCapability.Data#DATA_APPDATAMGRSequenceable.Producer<T>| 构造器 | 说明 |
|---|---|
DataAbilityPredicates() |
An no-argument constructor used to create a
DataAbilityPredicates instance. |
DataAbilityPredicates(String rawSelection) |
A constructor used to create a
DataAbilityPredicates instance with a raw SQL statement in string format. |
DataAbilityPredicates(Parcel source) |
A constructor used to create a
DataAbilityPredicates instance with a Parcel object. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
DataAbilityPredicates |
and() |
Adds an
and condition to the predicate. |
DataAbilityPredicates |
beginsWith(String field,
String value) |
Configures the predicates to match the field whose data type is
String and value starts
with a specified string. |
DataAbilityPredicates |
beginWrap() |
Adds a left parenthesis to the predicate.
|
DataAbilityPredicates |
between(String field,
double low,
double high) |
Configures the predicates to match the specified field whose data type is
double and value
is within a given range. |
DataAbilityPredicates |
between(String field,
float low,
float high) |
Configures the predicates to match the specified field whose data type is
float and value
is within a given range. |
DataAbilityPredicates |
between(String field,
int low,
int high) |
Configures the predicates to match the specified field whose data type is
int and value
is within a given range. |
DataAbilityPredicates |
between(String field,
long low,
long high) |
Configures the predicates to match the specified field whose data type is
long and value
is within a given range. |
DataAbilityPredicates |
between(String field,
String low,
String high) |
Configures the predicates to match the specified field whose data type is
String and value
is within a given range. |
DataAbilityPredicates |
between(String field,
Time low,
Time high) |
Configures the predicates to match the specified field whose data type is
Time and value
is within a given range. |
DataAbilityPredicates |
between(String field,
Timestamp low,
Timestamp high) |
Configures the predicates to match the specified field whose data type is
Timestamp and value
is within a given range. |
DataAbilityPredicates |
between(String field,
Calendar low,
Calendar high) |
Configures the predicates to match the specified field whose data type is
Calendar and value
is within a given range. |
DataAbilityPredicates |
between(String field,
Date low,
Date high) |
Configures the predicates to match the specified field whose data type is
Date and value
is within a given range. |
void |
clear() |
Clears the search conditions of
DataAbilityPredicates. |
DataAbilityPredicates |
contains(String field,
String value) |
Configures the predicates to match the field whose data type is
String and value
contains a specified value. |
DataAbilityPredicates |
distinct() |
Configures the predicates to filter out duplicate records and retain only one of them.
|
DataAbilityPredicates |
endsWith(String field,
String value) |
Configures the predicates to match the field whose data type is
String and value
ends with a specified string. |
DataAbilityPredicates |
endWrap() |
Adds a right parenthesis to the predicate.
|
DataAbilityPredicates |
equalTo(String field,
boolean value) |
Configures the predicates to match the field whose data type is
boolean and value is equal
to a specified value. |
DataAbilityPredicates |
equalTo(String field,
byte value) |
Configures the predicates to match the field whose data type is
byte and value is equal
to a specified value. |
DataAbilityPredicates |
equalTo(String field,
double value) |
Configures the predicates to match the field whose data type is
double and value is equal
to a specified value. |
DataAbilityPredicates |
equalTo(String field,
float value) |
Configures the predicates to match the field whose data type is
float and value is equal
to a specified value. |
DataAbilityPredicates |
equalTo(String field,
int value) |
Configures the predicates to match the field whose data type is
int and value is equal
to a specified value. |
DataAbilityPredicates |
equalTo(String field,
long value) |
Configures the predicates to match the field whose data type is
long and value is equal
to a specified value. |
DataAbilityPredicates |
equalTo(String field,
short value) |
Configures the predicates to match the field whose data type is
short and value is equal
to a specified value. |
DataAbilityPredicates |
equalTo(String field,
String value) |
Configures the predicates to match the field whose data type is
String and value is equal
to a specified value. |
DataAbilityPredicates |
equalTo(String field,
Time value) |
Configures the predicates to match the field whose data type is
Time and value is equal
to a specified value. |
DataAbilityPredicates |
equalTo(String field,
Timestamp value) |
Configures the predicates to match the field whose data type is
Timestamp and value is equal
to a specified value. |
DataAbilityPredicates |
equalTo(String field,
Calendar value) |
Configures the predicates to match the field whose data type is
Calendar and value is equal
to a specified value. |
DataAbilityPredicates |
equalTo(String field,
Date value) |
Configures the predicates to match the field whose data type is
Date and value is equal
to a specified value. |
String |
getOrder() |
Obtains the order information of a predicate.
|
List<String> |
getWhereArgs() |
Obtains the arguments of a predicate.
|
String |
getWhereClause() |
Obtains the where clause from a predicate.
|
DataAbilityPredicates |
glob(String field,
String value) |
|
DataAbilityPredicates |
greaterThan(String field,
double value) |
Configures the predicates to match the field whose data type is
double and value is
greater than a specified value. |
DataAbilityPredicates |
greaterThan(String field,
float value) |
Configures the predicates to match the field whose data type is
float and value is
greater than a specified value. |
DataAbilityPredicates |
greaterThan(String field,
int value) |
Configures the predicates to match the field whose data type is
int and value is
greater than a specified value. |
DataAbilityPredicates |
greaterThan(String field,
long value) |
Configures the predicates to match the field whose data type is
long and value is
greater than a specified value. |
DataAbilityPredicates |
greaterThan(String field,
String value) |
Configures the predicates to match the field whose data type is
String and value is
greater than a specified value. |
DataAbilityPredicates |
greaterThan(String field,
Time value) |
Configures the predicates to match the field whose data type is
Time and value is
greater than a specified value. |
DataAbilityPredicates |
greaterThan(String field,
Timestamp value) |
Configures the predicates to match the field whose data type is
Timestamp and value is
greater than a specified value. |
DataAbilityPredicates |
greaterThan(String field,
Calendar value) |
Configures the predicates to match the field whose data type is
Calendar and value is
greater than a specified value. |
DataAbilityPredicates |
greaterThan(String field,
Date value) |
Configures the predicates to match the field whose data type is
Date and value is
greater than a specified value. |
DataAbilityPredicates |
greaterThanOrEqualTo(String field,
double value) |
Configures the predicates to match the field whose data type is
double and value is
greater than or equal to a specified value. |
DataAbilityPredicates |
greaterThanOrEqualTo(String field,
float value) |
Configures the predicates to match the field whose data type is
float and value is
greater than or equal to a specified value. |
DataAbilityPredicates |
greaterThanOrEqualTo(String field,
int value) |
Configures the predicates to match the field whose data type is
int and value is
greater than or equal to a specified value. |
DataAbilityPredicates |
greaterThanOrEqualTo(String field,
long value) |
Configures the predicates to match the field whose data type is
long and value is
greater than or equal to a specified value. |
DataAbilityPredicates |
greaterThanOrEqualTo(String field,
String value) |
Configures the predicates to match the field whose data type is
String and value is
greater than or equal to a specified value. |
DataAbilityPredicates |
greaterThanOrEqualTo(String field,
Time value) |
Configures the predicates to match the field whose data type is
Time and value is
greater than or equal to a specified value. |
DataAbilityPredicates |
greaterThanOrEqualTo(String field,
Timestamp value) |
Configures the predicates to match the field whose data type is
Timestamp and value is
greater than or equal to a specified value. |
DataAbilityPredicates |
greaterThanOrEqualTo(String field,
Calendar value) |
Configures the predicates to match the field whose data type is
Calendar and value is
greater than or equal to a specified value. |
DataAbilityPredicates |
greaterThanOrEqualTo(String field,
Date value) |
Configures the predicates to match the field whose data type is
Date and value is
greater than or equal to a specified value. |
DataAbilityPredicates |
groupBy(String[] fields) |
Configures
DataAbilityPredicates to group query results by specified columns. |
DataAbilityPredicates |
in(String field,
double[] values) |
Configures
DataAbilityPredicates to match the specified field whose data type is double array and values
are within a given range. |
DataAbilityPredicates |
in(String field,
float[] values) |
Configures
DataAbilityPredicates to match the specified field whose data type is float array and values
are within a given range. |
DataAbilityPredicates |
in(String field,
int[] values) |
Configures
DataAbilityPredicates to match the specified field whose data type is int array and values
are within a given range. |
DataAbilityPredicates |
in(String field,
long[] values) |
Configures
DataAbilityPredicates to match the specified field whose data type is long array and values
are within a given range. |
DataAbilityPredicates |
in(String field,
String[] values) |
Configures
DataAbilityPredicates to match the specified field whose data type is String array and values
are within a given range. |
DataAbilityPredicates |
in(String field,
Time[] values) |
Configures
DataAbilityPredicates to match the specified field whose data type is Time array and values
are within a given range. |
DataAbilityPredicates |
in(String field,
Timestamp[] values) |
Configures
DataAbilityPredicates to match the specified field whose data type is Timestamp array and
values are within a given range. |
DataAbilityPredicates |
in(String field,
Calendar[] values) |
Configures
DataAbilityPredicates to match the specified field whose data type is Calendar array and
values are within a given range. |
DataAbilityPredicates |
in(String field,
Date[] values) |
Configures
DataAbilityPredicates to match the specified field whose data type is Date array and values
are within a given range. |
DataAbilityPredicates |
indexedBy(String indexName) |
Configures
DataAbilityPredicates to specify the index column. |
DataAbilityPredicates |
isNotNull(String field) |
Configures the predicates to match the specified fields whose value is not
null. |
DataAbilityPredicates |
isNull(String field) |
Configures the predicates to match the fields whose value is
null. |
boolean |
isRawSelection() |
Obtain value of variable isRawSelection.
|
DataAbilityPredicates |
lessThan(String field,
double value) |
Configures the predicates to match the field whose data type is
double and value
is less than a specified value. |
DataAbilityPredicates |
lessThan(String field,
float value) |
Configures the predicates to match the field whose data type is
float and value
is less than a specified value. |
DataAbilityPredicates |
lessThan(String field,
int value) |
Configures the predicates to match the field whose data type is
int and value
is less than a specified value. |
DataAbilityPredicates |
lessThan(String field,
long value) |
Configures the predicates to match the field whose data type is
long and value
is less than a specified value. |
DataAbilityPredicates |
lessThan(String field,
String value) |
Configures the predicates to match the field whose data type is
String and value
is less than a specified value. |
DataAbilityPredicates |
lessThan(String field,
Time value) |
Configures the predicates to match the field whose data type is
Time and value
is less than a specified value. |
DataAbilityPredicates |
lessThan(String field,
Timestamp value) |
Configures the predicates to match the field whose data type is
Timestamp and value
is less than a specified value. |
DataAbilityPredicates |
lessThan(String field,
Calendar value) |
Configures the predicates to match the field whose data type is
Calendar and value
is less than a specified value. |
DataAbilityPredicates |
lessThan(String field,
Date value) |
Configures the predicates to match the field whose data type is
Date and value
is less than a specified value. |
DataAbilityPredicates |
lessThanOrEqualTo(String field,
double value) |
Configures the predicates to match the field whose data type is
double and value
is less than or equal to a specified value. |
DataAbilityPredicates |
lessThanOrEqualTo(String field,
float value) |
Configures the predicates to match the field whose data type is
float and value
is less than or equal to a specified value. |
DataAbilityPredicates |
lessThanOrEqualTo(String field,
int value) |
Configures the predicates to match the field whose data type is
int and value
is less than or equal to a specified value. |
DataAbilityPredicates |
lessThanOrEqualTo(String field,
long value) |
Configures the predicates to match the field whose data type is
long and value
is less than or equal to a specified value. |
DataAbilityPredicates |
lessThanOrEqualTo(String field,
String value) |
Configures the predicates to match the field whose data type is
String and value
is less than or equal to a specified value. |
DataAbilityPredicates |
lessThanOrEqualTo(String field,
Time value) |
Configures the predicates to match the field whose data type is
Time and value
is less than or equal to a specified value. |
DataAbilityPredicates |
lessThanOrEqualTo(String field,
Timestamp value) |
Configures the predicates to match the field whose data type is
Timestamp and value
is less than or equal to a specified value. |
DataAbilityPredicates |
lessThanOrEqualTo(String field,
Calendar value) |
Configures the predicates to match the field whose data type is
Calendar and value
is less than or equal to a specified value. |
DataAbilityPredicates |
lessThanOrEqualTo(String field,
Date value) |
Configures the predicates to match the field whose data type is
Date and value
is less than or equal to a specified value. |
DataAbilityPredicates |
like(String field,
String value) |
Configures the predicates to match the fields whose data type is
String and value is
similar to a specified string. |
DataAbilityPredicates |
limit(int value) |
Sets the maximum number of data records in the column that match the specified predicates.
|
boolean |
marshalling(Parcel out) |
Write DataAbilityPredicates object to Parcel.
|
DataAbilityPredicates |
notBetween(String field,
double low,
double high) |
Configures
DataAbilityPredicates to match the specified field whose data type is double and value is
out of a given range. |
DataAbilityPredicates |
notBetween(String field,
float low,
float high) |
Configures
DataAbilityPredicates to match the specified field whose data type is float and value is
out of a given range. |
DataAbilityPredicates |
notBetween(String field,
int low,
int high) |
Configures
DataAbilityPredicates to match the specified field whose data type is int and value is
out of a given range. |
DataAbilityPredicates |
notBetween(String field,
long low,
long high) |
Configures
DataAbilityPredicates to match the specified field whose data type is long and value is
out of a given range. |
DataAbilityPredicates |
notBetween(String field,
String low,
String high) |
|
DataAbilityPredicates |
notBetween(String field,
Time low,
Time high) |
Configures
DataAbilityPredicates to match the specified field whose data type is Time and value is
out of a given range. |
DataAbilityPredicates |
notBetween(String field,
Timestamp low,
Timestamp high) |
Configures
DataAbilityPredicates to match the specified field whose data type is Timestamp and value is
out of a given range. |
DataAbilityPredicates |
notBetween(String field,
Calendar low,
Calendar high) |
Configures
DataAbilityPredicates to match the specified field whose data type is Calendar and value is
out of a given range. |
DataAbilityPredicates |
notBetween(String field,
Date low,
Date high) |
Configures
DataAbilityPredicates to match the specified field whose data type is Date and value is
out of a given range. |
DataAbilityPredicates |
notEqualTo(String field,
boolean value) |
Configures the predicates to match the field whose data type is
boolean and value is unequal to
a specified value. |
DataAbilityPredicates |
notEqualTo(String field,
byte value) |
Configures the predicates to match the field whose data type is
byte and value is unequal to
a specified value. |
DataAbilityPredicates |
notEqualTo(String field,
double value) |
Configures the predicates to match the field whose data type is
double and value is unequal to
a specified value. |
DataAbilityPredicates |
notEqualTo(String field,
float value) |
Configures the predicates to match the field whose data type is
float and value is unequal to
a specified value. |
DataAbilityPredicates |
notEqualTo(String field,
int value) |
Configures the predicates to match the field whose data type is
int and value is unequal to
a specified value. |
DataAbilityPredicates |
notEqualTo(String field,
long value) |
Configures the predicates to match the field whose data type is
long and value is unequal to
a specified value. |
DataAbilityPredicates |
notEqualTo(String field,
short value) |
Configures the predicates to match the field whose data type is
short and value is unequal to
a specified value. |
DataAbilityPredicates |
notEqualTo(String field,
String value) |
Configures the predicates to match the field whose data type is
String and value is unequal to
a specified value. |
DataAbilityPredicates |
notEqualTo(String field,
Time value) |
Configures the predicates to match the field whose data type is
Time and value is unequal to
a specified value. |
DataAbilityPredicates |
notEqualTo(String field,
Timestamp value) |
Configures the predicates to match the field whose data type is
Timestamp and value is unequal to
a specified value. |
DataAbilityPredicates |
notEqualTo(String field,
Calendar value) |
Configures the predicates to match the field whose data type is
Calendar and value is unequal to
a specified value. |
DataAbilityPredicates |
notEqualTo(String field,
Date value) |
Configures the predicates to match the field whose data type is
Date and value is unequal to
a specified value. |
DataAbilityPredicates |
notIn(String field,
double[] values) |
Configures
DataAbilityPredicates to match the specified field whose data type is double array and values
are out of a given range. |
DataAbilityPredicates |
notIn(String field,
float[] values) |
Configures
DataAbilityPredicates to match the specified field whose data type is float array and values
are out of a given range. |
DataAbilityPredicates |
notIn(String field,
int[] values) |
Configures
DataAbilityPredicates to match the specified field whose data type is int array and values
are out of a given range. |
DataAbilityPredicates |
notIn(String field,
long[] values) |
Configures
DataAbilityPredicates to match the specified field whose data type is long array and values
are out of a given range. |
DataAbilityPredicates |
notIn(String field,
String[] values) |
Configures
DataAbilityPredicates to match the specified field whose data type is String array and values
are out of a given range. |
DataAbilityPredicates |
notIn(String field,
Time[] values) |
Configures
DataAbilityPredicates to match the specified field whose data type is Time array and values
are out of a given range. |
DataAbilityPredicates |
notIn(String field,
Timestamp[] values) |
Configures
DataAbilityPredicates to match the specified field whose data type is Timestamp array and
values are out of a given range. |
DataAbilityPredicates |
notIn(String field,
Calendar[] values) |
Configures
DataAbilityPredicates to match the specified field whose data type is Calendar array and
values are out of a given range. |
DataAbilityPredicates |
notIn(String field,
Date[] values) |
Configures
DataAbilityPredicates to match the specified field whose data type is Date array and values
are out of a given range. |
DataAbilityPredicates |
offset(int rowOffset) |
Configures
DataAbilityPredicates to specify the start position of the returned result. |
DataAbilityPredicates |
or() |
Adds an
or condition to the predicate. |
DataAbilityPredicates |
orderByAsc(String field) |
Configures the predicates to match the columns whose values are sorted in ascending order.
|
DataAbilityPredicates |
orderByDesc(String field) |
Configures the predicates to match the columns whose values are sorted in descending order.
|
void |
setOrder(String order) |
Sets the order information for a predicate.
|
void |
setWhereArgs(List<String> whereArgs) |
Sets the arguments for a predicate.
|
boolean |
unmarshalling(Parcel in) |
Read from Parcel object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic DataAbilityPredicates()
DataAbilityPredicates instance.public DataAbilityPredicates(String rawSelection)
DataAbilityPredicates instance with a raw SQL statement in string format.
The DataAbilityPredicates instance can be used to set conditions for querying data across processes.
rawSelection - Indicates the raw SQL statement used to create the DataAbilityPredicates instance.public DataAbilityPredicates(Parcel source)
DataAbilityPredicates instance with a Parcel object.
It is recommended that this method is used to initialize predicates in cross-device data transmission.
source - Indicates the Parcel object used to create the
DataAbilityPredicates instance.public void clear()
DataAbilityPredicates.
This method retains only the value of private attribute isRawSelection in
DataAbilityPredicates and restores other private attributes to their default values.
public String getWhereClause()
public void setWhereArgs(List<String> whereArgs)
whereArgs - Indicates the arguments to set.public void setOrder(String order)
order - Indicates the order information to set.public String getOrder()
public List<String> getWhereArgs()
public DataAbilityPredicates equalTo(String field, byte value)
byte and value is equal
to a specified value.
This method is similar to = of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates equalTo(String field, short value)
short and value is equal
to a specified value.
This method is similar to = of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates equalTo(String field, int value)
int and value is equal
to a specified value.
This method is similar to = of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates equalTo(String field, long value)
long and value is equal
to a specified value.
This method is similar to = of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates equalTo(String field, double value)
double and value is equal
to a specified value.
This method is similar to = of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates equalTo(String field, float value)
float and value is equal
to a specified value.
This method is similar to = of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates equalTo(String field, boolean value)
boolean and value is equal
to a specified value.
This method is similar to = of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates equalTo(String field, Date value)
Date and value is equal
to a specified value.
This method is similar to = of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates equalTo(String field, Time value)
Time and value is equal
to a specified value.
This method is similar to = of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates equalTo(String field, Timestamp value)
Timestamp and value is equal
to a specified value.
This method is similar to = of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates equalTo(String field, Calendar value)
Calendar and value is equal
to a specified value.
This method is similar to = of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates equalTo(String field, String value)
String and value is equal
to a specified value.
This method is similar to = of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates notEqualTo(String field, byte value)
byte and value is unequal to
a specified value.
This method is similar to != of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates notEqualTo(String field, short value)
short and value is unequal to
a specified value.
This method is similar to != of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates notEqualTo(String field, int value)
int and value is unequal to
a specified value.
This method is similar to != of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates notEqualTo(String field, long value)
long and value is unequal to
a specified value.
This method is similar to != of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates notEqualTo(String field, double value)
double and value is unequal to
a specified value.
This method is similar to != of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates notEqualTo(String field, float value)
float and value is unequal to
a specified value.
This method is similar to != of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates notEqualTo(String field, boolean value)
boolean and value is unequal to
a specified value.
This method is similar to != of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates notEqualTo(String field, Date value)
Date and value is unequal to
a specified value.
This method is similar to != of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates notEqualTo(String field, Time value)
Time and value is unequal to
a specified value.
This method is similar to != of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates notEqualTo(String field, Timestamp value)
Timestamp and value is unequal to
a specified value.
This method is similar to != of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates notEqualTo(String field, Calendar value)
Calendar and value is unequal to
a specified value.
This method is similar to != of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates notEqualTo(String field, String value)
String and value is unequal to
a specified value.
This method is similar to != of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates beginWrap()
This method is similar to ( of the SQL statement and needs to be used together
with endWrap().
public DataAbilityPredicates endWrap()
This method is similar to ) of the SQL statement and needs to be used together
with beginWrap().
public DataAbilityPredicates or()
or condition to the predicate.
This method is similar to or of the SQL statement.
or condition.public DataAbilityPredicates and()
and condition to the predicate.
This method is similar to and of the SQL statement.
and condition.public DataAbilityPredicates contains(String field, String value)
String and value
contains a specified value.
This method is similar to contains of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates beginsWith(String field, String value)
String and value starts
with a specified string.
This method is similar to value% of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates endsWith(String field, String value)
String and value
ends with a specified string.
This method is similar to %value of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates isNull(String field)
null.
This method is similar to is null of the SQL statement.
field - Indicates the column name in the database table.public DataAbilityPredicates isNotNull(String field)
null.
This method is similar to is not null of the SQL statement.
field - Indicates the column name in the database table.public DataAbilityPredicates like(String field, String value)
String and value is
similar to a specified string.
This method is similar to like of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates. The percent sign (%) in the value
is a wildcard (like * in a regular expression).public DataAbilityPredicates glob(String field, String value)
public DataAbilityPredicates between(String field, int low, int high)
int and value
is within a given range.
This method is similar to between of the SQL statement.
field - Indicates the column name in the database table.low - Indicates the minimum value to match with the predicates.high - Indicates the maximum value to match with the predicates.public DataAbilityPredicates between(String field, long low, long high)
long and value
is within a given range.
This method is similar to between of the SQL statement.
field - Indicates the column name in the database table.low - Indicates the minimum value to match with the predicates.high - Indicates the maximum value to match with the predicates.public DataAbilityPredicates between(String field, double low, double high)
double and value
is within a given range.
This method is similar to between of the SQL statement.
field - Indicates the column name in the database table.low - Indicates the minimum value to match with the predicates.high - Indicates the maximum value to match with the predicates.public DataAbilityPredicates between(String field, float low, float high)
float and value
is within a given range.
This method is similar to between of the SQL statement.
field - Indicates the column name in the database table.low - Indicates the minimum value to match with the predicates.high - Indicates the maximum value to match with the predicates.public DataAbilityPredicates between(String field, Date low, Date high)
Date and value
is within a given range.
This method is similar to between of the SQL statement.
field - Indicates the column name in the database table.low - Indicates the minimum value to match with the predicates.high - Indicates the maximum value to match with the predicates.public DataAbilityPredicates between(String field, Time low, Time high)
Time and value
is within a given range.
This method is similar to between of the SQL statement.
field - Indicates the column name in the database table.low - Indicates the minimum value to match with the predicates.high - Indicates the maximum value to match with the predicates.public DataAbilityPredicates between(String field, Timestamp low, Timestamp high)
Timestamp and value
is within a given range.
This method is similar to between of the SQL statement.
field - Indicates the column name in the database table.low - Indicates the minimum value to match with the predicates.high - Indicates the maximum value to match with the predicates.public DataAbilityPredicates between(String field, Calendar low, Calendar high)
Calendar and value
is within a given range.
This method is similar to between of the SQL statement.
field - Indicates the column name in the database table.low - Indicates the minimum value to match with the predicates.high - Indicates the maximum value to match with the predicates.public DataAbilityPredicates between(String field, String low, String high)
String and value
is within a given range.
This method is similar to between of the SQL statement.
field - Indicates the column name in the database table.low - Indicates the minimum value to match with the predicates.high - Indicates the maximum value to match with the predicates.public DataAbilityPredicates notBetween(String field, int low, int high)
DataAbilityPredicates to match the specified field whose data type is int and value is
out of a given range.field - Indicates the column name in the database table.low - Indicates the minimum value to match with DataAbilityPredicates.high - Indicates the maximum value to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates notBetween(String field, long low, long high)
DataAbilityPredicates to match the specified field whose data type is long and value is
out of a given range.field - Indicates the column name in the database table.low - Indicates the minimum value to match with DataAbilityPredicates.high - Indicates the maximum value to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates notBetween(String field, double low, double high)
DataAbilityPredicates to match the specified field whose data type is double and value is
out of a given range.field - Indicates the column name in the database table.low - Indicates the minimum value to match with DataAbilityPredicates.high - Indicates the maximum value to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates notBetween(String field, float low, float high)
DataAbilityPredicates to match the specified field whose data type is float and value is
out of a given range.field - Indicates the column name in the database table.low - Indicates the minimum value to match with DataAbilityPredicates.high - Indicates the maximum value to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates notBetween(String field, Date low, Date high)
DataAbilityPredicates to match the specified field whose data type is Date and value is
out of a given range.field - Indicates the column name in the database table.low - Indicates the minimum value to match with DataAbilityPredicates.high - Indicates the maximum value to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates notBetween(String field, Time low, Time high)
DataAbilityPredicates to match the specified field whose data type is Time and value is
out of a given range.field - Indicates the column name in the database table.low - Indicates the minimum value to match with DataAbilityPredicates.high - Indicates the maximum value to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates notBetween(String field, Timestamp low, Timestamp high)
DataAbilityPredicates to match the specified field whose data type is Timestamp and value is
out of a given range.field - Indicates the column name in the database table.low - Indicates the minimum value to match with DataAbilityPredicates.high - Indicates the maximum value to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates notBetween(String field, Calendar low, Calendar high)
DataAbilityPredicates to match the specified field whose data type is Calendar and value is
out of a given range.field - Indicates the column name in the database table.low - Indicates the minimum value to match with DataAbilityPredicates.high - Indicates the maximum value to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates notBetween(String field, String low, String high)
public DataAbilityPredicates greaterThan(String field, int value)
int and value is
greater than a specified value.
This method is similar to > of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates greaterThan(String field, long value)
long and value is
greater than a specified value.
This method is similar to > of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates greaterThan(String field, double value)
double and value is
greater than a specified value.
This method is similar to > of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates greaterThan(String field, float value)
float and value is
greater than a specified value.
This method is similar to > of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates greaterThan(String field, Date value)
Date and value is
greater than a specified value.
This method is similar to > of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates greaterThan(String field, Time value)
Time and value is
greater than a specified value.
This method is similar to > of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates greaterThan(String field, Timestamp value)
Timestamp and value is
greater than a specified value.
This method is similar to > of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates greaterThan(String field, Calendar value)
Calendar and value is
greater than a specified value.
This method is similar to > of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates greaterThan(String field, String value)
String and value is
greater than a specified value.
This method is similar to > of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates lessThan(String field, int value)
int and value
is less than a specified value.
This method is similar to < of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates lessThan(String field, long value)
long and value
is less than a specified value.
This method is similar to < of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates lessThan(String field, double value)
double and value
is less than a specified value.
This method is similar to < of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates lessThan(String field, float value)
float and value
is less than a specified value.
This method is similar to < of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates lessThan(String field, Date value)
Date and value
is less than a specified value.
This method is similar to < of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates lessThan(String field, Time value)
Time and value
is less than a specified value.
This method is similar to < of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates lessThan(String field, Timestamp value)
Timestamp and value
is less than a specified value.
This method is similar to < of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates lessThan(String field, Calendar value)
Calendar and value
is less than a specified value.
This method is similar to < of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates lessThan(String field, String value)
String and value
is less than a specified value.
This method is similar to < of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates greaterThanOrEqualTo(String field, int value)
int and value is
greater than or equal to a specified value.
This method is similar to >= of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates greaterThanOrEqualTo(String field, long value)
long and value is
greater than or equal to a specified value.
This method is similar to >= of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates greaterThanOrEqualTo(String field, double value)
double and value is
greater than or equal to a specified value.
This method is similar to >= of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates greaterThanOrEqualTo(String field, float value)
float and value is
greater than or equal to a specified value.
This method is similar to >= of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates greaterThanOrEqualTo(String field, Date value)
Date and value is
greater than or equal to a specified value.
This method is similar to >= of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates greaterThanOrEqualTo(String field, Time value)
Time and value is
greater than or equal to a specified value.
This method is similar to >= of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates greaterThanOrEqualTo(String field, Timestamp value)
Timestamp and value is
greater than or equal to a specified value.
This method is similar to >= of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates greaterThanOrEqualTo(String field, Calendar value)
Calendar and value is
greater than or equal to a specified value.
This method is similar to >= of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates greaterThanOrEqualTo(String field, String value)
String and value is
greater than or equal to a specified value.
This method is similar to >= of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates lessThanOrEqualTo(String field, int value)
int and value
is less than or equal to a specified value.
This method is similar to <= of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates lessThanOrEqualTo(String field, long value)
long and value
is less than or equal to a specified value.
This method is similar to <= of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates lessThanOrEqualTo(String field, double value)
double and value
is less than or equal to a specified value.
This method is similar to <= of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates lessThanOrEqualTo(String field, float value)
float and value
is less than or equal to a specified value.
This method is similar to <= of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates lessThanOrEqualTo(String field, Date value)
Date and value
is less than or equal to a specified value.
This method is similar to <= of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates lessThanOrEqualTo(String field, Time value)
Time and value
is less than or equal to a specified value.
This method is similar to <= of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates lessThanOrEqualTo(String field, Timestamp value)
Timestamp and value
is less than or equal to a specified value.
This method is similar to <= of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates lessThanOrEqualTo(String field, Calendar value)
Calendar and value
is less than or equal to a specified value.
This method is similar to <= of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates lessThanOrEqualTo(String field, String value)
String and value
is less than or equal to a specified value.
This method is similar to <= of the SQL statement.
field - Indicates the column name in the database table.value - Indicates the value to match with the predicates.public DataAbilityPredicates orderByAsc(String field)
This method is similar to order by field asc of the SQL statement.
field - Indicates the column name in the database table.public DataAbilityPredicates orderByDesc(String field)
This method is similar to order by field desc of the SQL statement.
field - Indicates the column name in the database table.public DataAbilityPredicates distinct()
This method is similar to distinct of the SQL statement.
public DataAbilityPredicates limit(int value)
This method is similar to limit of the SQL statement.
value - Indicates the maximum number of data records.public DataAbilityPredicates offset(int rowOffset)
DataAbilityPredicates to specify the start position of the returned result.
Use this method together with DataAbilityPredicates#limit(int).
rowOffset - Indicates the start position of the returned result. The value is a positive integer.DataAbilityPredicates with the specified start position of the returned result.limit(int)public DataAbilityPredicates groupBy(String[] fields)
DataAbilityPredicates to group query results by specified columns.fields - Indicates the specified columns by which query results are grouped.DataAbilityPredicates with the specified columns by which query results are grouped.public DataAbilityPredicates indexedBy(String indexName)
DataAbilityPredicates to specify the index column.
Before using this method, you need to create an index column.
indexName - Indicates the name of the index column.DataAbilityPredicates with the specified index column.public DataAbilityPredicates in(String field, int[] values)
DataAbilityPredicates to match the specified field whose data type is int array and values
are within a given range.field - Indicates the column name in the database table.values - Indicates the values to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates in(String field, long[] values)
DataAbilityPredicates to match the specified field whose data type is long array and values
are within a given range.field - Indicates the column name in the database table.values - Indicates the values to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates in(String field, double[] values)
DataAbilityPredicates to match the specified field whose data type is double array and values
are within a given range.field - Indicates the column name in the database table.values - Indicates the values to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates in(String field, float[] values)
DataAbilityPredicates to match the specified field whose data type is float array and values
are within a given range.field - Indicates the column name in the database table.values - Indicates the values to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates in(String field, Date[] values)
DataAbilityPredicates to match the specified field whose data type is Date array and values
are within a given range.field - Indicates the column name in the database table.values - Indicates the values to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates in(String field, Time[] values)
DataAbilityPredicates to match the specified field whose data type is Time array and values
are within a given range.field - Indicates the column name in the database table.values - Indicates the values to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates in(String field, Timestamp[] values)
DataAbilityPredicates to match the specified field whose data type is Timestamp array and
values are within a given range.field - Indicates the column name in the database table.values - Indicates the values to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates in(String field, Calendar[] values)
DataAbilityPredicates to match the specified field whose data type is Calendar array and
values are within a given range.field - Indicates the column name in the database table.values - Indicates the values to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates in(String field, String[] values)
DataAbilityPredicates to match the specified field whose data type is String array and values
are within a given range.field - Indicates the column name in the database table.values - Indicates the values to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates notIn(String field, int[] values)
DataAbilityPredicates to match the specified field whose data type is int array and values
are out of a given range.field - Indicates the column name in the database table.values - Indicates the values to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates notIn(String field, long[] values)
DataAbilityPredicates to match the specified field whose data type is long array and values
are out of a given range.field - Indicates the column name in the database table.values - Indicates the values to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates notIn(String field, double[] values)
DataAbilityPredicates to match the specified field whose data type is double array and values
are out of a given range.field - Indicates the column name in the database table.values - Indicates the values to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates notIn(String field, float[] values)
DataAbilityPredicates to match the specified field whose data type is float array and values
are out of a given range.field - Indicates the column name in the database table.values - Indicates the values to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates notIn(String field, Date[] values)
DataAbilityPredicates to match the specified field whose data type is Date array and values
are out of a given range.field - Indicates the column name in the database table.values - Indicates the values to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates notIn(String field, Time[] values)
DataAbilityPredicates to match the specified field whose data type is Time array and values
are out of a given range.field - Indicates the column name in the database table.values - Indicates the values to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates notIn(String field, Timestamp[] values)
DataAbilityPredicates to match the specified field whose data type is Timestamp array and
values are out of a given range.field - Indicates the column name in the database table.values - Indicates the values to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates notIn(String field, Calendar[] values)
DataAbilityPredicates to match the specified field whose data type is Calendar array and
values are out of a given range.field - Indicates the column name in the database table.values - Indicates the values to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public DataAbilityPredicates notIn(String field, String[] values)
DataAbilityPredicates to match the specified field whose data type is String array and values
are out of a given range.field - Indicates the column name in the database table.values - Indicates the values to match with DataAbilityPredicates.DataAbilityPredicates that matches the specified field.public boolean isRawSelection()
public boolean marshalling(Parcel out)
marshalling 在接口中 Sequenceableout - Indicates the Parcel to which DataAbilityPredicates objects are written.public boolean unmarshalling(Parcel in)
unmarshalling 在接口中 Sequenceablein - Indicates the Parcel from which DataAbilityPredicates objects are read.