OrmPredicates 数据库条件
Java API参考-OrmPredicates (harmonyos.com)
Method Summary
|
Modifier and Type |
Method |
Description |
|---|---|---|
|
and() |
加一个条件 |
|
|
beginsWith(String field, String value) |
就是某一个字段,某个字符开头 |
|
|
beginWrap() |
Adds a left parenthesis to the predicate. |
|
|
双精数值在某某之间 |
||
|
Configures the predicates to match the specified field whose data type is float and value is within a given range. |
||
|
整型在某某之间 |
||
|
Configures the predicates to match the specified field whose data type is long and value is within a given range. |
||
|
Configures the predicates to match the specified field whose data type is String and value is within a given range. |
||
|
时间值在某某之前 |
||
|
Configures the predicates to match the specified field whose data type is Timestamp and value is within a given range. |
||
|
Configures the predicates to match the specified field whose data type is Calendar and value is within a given range. |
||
|
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 OrmPredicates. |
|
Configures the predicates to match the field whose data type is String and value contains a specified value. |
||
|
<J extends OrmObject>OrmPredicates |
Adds a cross join condition to a SQL statement. |
|
|
distinct() |
Configures the predicates to filter out duplicate records and retain only one of them. |
|
|
Configures the predicates to match the field whose data type is String and value ends with a specified string. |
||
|
endWrap() |
Adds a right parenthesis to the predicate. |
|
|
Configures the predicates to match the field whose data type is boolean and value is equal to a specified value. |
||
|
Configures the predicates to match the field whose data type is byte and value is equal to a specified value. |
||
|
Configures the predicates to match the field whose data type is double and value is equal to a specified value. |
||
|
Configures the predicates to match the field whose data type is float and value is equal to a specified value. |
||
|
Configures the predicates to match the field whose data type is int and value is equal to a specified value. |
||
|
Configures the predicates to match the field whose data type is long and value is equal to a specified value. |
||
|
Configures the predicates to match the field whose data type is short and value is equal to a specified value. |
||
|
Configures the predicates to match the field whose data type is String and value is equal to a specified value. |
||
|
Configures the predicates to match the field whose data type is Time and value is equal to a specified value. |
||
|
Configures the predicates to match the field whose data type is Timestamp and value is equal to a specified value. |
||
|
Configures the predicates to match the field whose data type is Calendar and value is equal to a specified value. |
||
|
Configures the predicates to match the field whose data type is Date and value is equal to a specified value. |
||
|
Obtains the value of variable entityName. |
||
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
Configures OrmPredicates to group query results by specified columns. |
||
|
Configures OrmPredicates to match the specified field whose data type is double array and values are within a given range. |
||
|
Configures OrmPredicates to match the specified field whose data type is float array and values are within a given range. |
||
|
Configures OrmPredicates to match the specified field whose data type is int array and values are within a given range. |
||
|
Configures OrmPredicates to match the specified field whose data type is long array and values are within a given range. |
||
|
Configures OrmPredicates to match the specified field whose data type is String array and values are within a given range. |
||
|
Configures OrmPredicates to match the specified field whose data type is Time array and values are within a given range. |
||
|
Configures OrmPredicates to match the specified field whose data type is Timestamp array and values are within a given range. |
||
|
Configures OrmPredicates to match the specified field whose data type is Calendar array and values are within a given range. |
||
|
Configures OrmPredicates to match the specified field whose data type is Date array and values are within a given range. |
||
|
Configures OrmPredicates to specify the index column. |
||
|
<J extends OrmObject>OrmPredicates |
Adds an inner join condition to a SQL statement. |
|
|
Configures the predicates to match the specified fields whose value is not null. |
||
|
Configures the predicates to match the fields whose value is null. |
||
|
<J extends OrmObject>OrmPredicates |
leftOuterJoin(Class<J> clz) |
Adds a left outer join condition to a SQL statement. |
|
Configures the predicates to match the field whose data type is double and value is less than a specified value. |
||
|
Configures the predicates to match the field whose data type is float and value is less than a specified value. |
||
|
Configures the predicates to match the field whose data type is int and value is less than a specified value. |
||
|
Configures the predicates to match the field whose data type is long and value is less than a specified value. |
||
|
Configures the predicates to match the field whose data type is String and value is less than a specified value. |
||
|
Configures the predicates to match the field whose data type is Time and value is less than a specified value. |
||
|
Configures the predicates to match the field whose data type is Timestamp and value is less than a specified value. |
||
|
Configures the predicates to match the field whose data type is Calendar and value is less than a specified value. |
||
|
Configures the predicates to match the field whose data type is Date and value is less than a specified value. |
||
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
Configures the predicates to match the fields whose data type is String and value is similar to a specified string. |
||
|
limit(int value) |
Sets the maximum number of data records in the column that match the specified predicates. |
|
|
notBetween(String field, double low, double high) |
Configures OrmPredicates to match the specified field whose data type is double and value is out of a given range. |
|
|
notBetween(String field, float low, float high) |
Configures OrmPredicates to match the specified field whose data type is float and value is out of a given range. |
|
|
notBetween(String field, int low, int high) |
Configures OrmPredicates to match the specified field whose data type is int and value is out of a given range. |
|
|
notBetween(String field, long low, long high) |
Configures OrmPredicates to match the specified field whose data type is long and value is out of a given range. |
|
|
notBetween(String field, String low, String high) |
||
|
notBetween(String field, Time low, Time high) |
Configures OrmPredicates to match the specified field whose data type is Time and value is out of a given range. |
|
|
notBetween(String field, Timestamp low, Timestamp high) |
Configures OrmPredicates to match the specified field whose data type is Timestamp and value is out of a given range. |
|
|
notBetween(String field, Calendar low, Calendar high) |
Configures OrmPredicates to match the specified field whose data type is Calendar and value is out of a given range. |
|
|
notBetween(String field, Date low, Date high) |
Configures OrmPredicates to match the specified field whose data type is Date and value is out of a given range. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
Configures OrmPredicates to match the specified field whose data type is double array and values are out of a given range. |
||
|
Configures OrmPredicates to match the specified field whose data type is float array and values are out of a given range. |
||
|
Configures OrmPredicates to match the specified field whose data type is int array and values are out of a given range. |
||
|
Configures OrmPredicates to match the specified field whose data type is long array and values are out of a given range. |
||
|
Configures OrmPredicates to match the specified field whose data type is String array and values are out of a given range. |
||
|
Configures OrmPredicates to match the specified field whose data type is Time array and values are out of a given range. |
||
|
Configures OrmPredicates to match the specified field whose data type is Timestamp array and values are out of a given range. |
||
|
Configures OrmPredicates to match the specified field whose data type is Calendar array and values are out of a given range. |
||
|
Configures OrmPredicates to match the specified field whose data type is Date array and values are out of a given range. |
||
|
offset(int rowOffset) |
Configures OrmPredicates to specify the start position of the returned result. |
|
|
Adds an on condition to the predicate. |
||
|
or() |
Adds an or condition to the predicate. |
|
|
orderByAsc(String field) |
Configures the predicates to match the columns whose values are sorted in ascending order. |
|
|
orderByDesc(String field) |
Configures the predicates to match the columns whose values are sorted in descending order. |
|
|
Adds a using condition to the predicate. |
浙公网安备 33010602011771号