public class QueryOperations
extends java.lang.Object
| Constructor and Description |
|---|
QueryOperations() |
| Modifier and Type | Method and Description |
|---|---|
static Query |
add()
Add operator.
|
static Query |
add(java.lang.Number val)
Add operator.
|
static Query |
add(Query otherQuery)
Add operator.
|
static Query |
and()
Conditional and.
|
static Query |
and(Query otherQuery)
Conditional and.
|
static Query |
ceiling(Query exp)
The smallest integral value greater than or equal to the parameter value.
|
static Query |
concat(Query str1,
Query str2)
String value which is the first and second parameter values merged
together with the first parameter value coming first in the result.
|
static Query |
day(Query exp)
The day component value of the parameter value.
|
static Query |
day(java.lang.String field)
The day component value of the parameter value.
|
static Query |
div()
Divide operator.
|
static Query |
div(java.lang.Number val)
Divide operator.
|
static Query |
div(Query otherQuery)
Divide operator.
|
static Query |
endsWith(Query field,
Query end)
Whether the end of the first parameter value matches the second parameter
value.
|
static Query |
endsWith(java.lang.String field,
java.lang.String end)
Whether the end of the first parameter value matches the second parameter
value.
|
static Query |
eq()
Equal comparison operator.
|
static Query |
eq(boolean booleanValue)
Equal comparison operator.
|
static Query |
eq(java.lang.Number numberValue)
Equal comparison operator.
|
static Query |
eq(Query otherQuery)
Equal comparison operator.
|
static Query |
eq(java.lang.String stringValue)
Equal comparison operator.
|
static Query |
field(java.lang.String fieldName)
Creates Query representing a field
|
static Query |
floor(Query exp)
The largest integral value less than or equal to the parameter value.
|
static Query |
ge()
Greater than or equal comparison operator.
|
static Query |
ge(java.lang.Number numberValue)
Greater than or equal comparison operator.
|
static Query |
ge(Query otherQuery)
Greater than or equal comparison operator.
|
static Query |
gt()
Greater than comparison operator.
|
static Query |
gt(java.lang.Number numberValue)
Greater than comparison operator.
|
static Query |
gt(Query otherQuery)
Greater than comparison operator.
|
static Query |
hour(Query exp)
The hour component value of the parameter value.
|
static Query |
hour(java.lang.String field)
The hour component value of the parameter value.
|
static Query |
indexOf(Query haystack,
Query needle)
Index of the first occurrence of the second parameter value in the first
parameter value or -1 otherwise.
|
static Query |
indexOf(java.lang.String field,
java.lang.String str)
Index of the first occurrence of the second parameter value in the first
parameter value or -1 otherwise.
|
static Query |
le()
Less than or equal comparison operator.
|
static Query |
le(java.lang.Number numberValue)
Less than or equal comparison operator.
|
static Query |
le(Query otherQuery)
Less than or equal comparison operator.
|
static Query |
length(Query exp)
The number of characters in the specified parameter value.
|
static Query |
length(java.lang.String field)
The number of characters in the specified parameter value.
|
static Query |
lt()
Less than comparison operator.
|
static Query |
lt(java.lang.Number numberValue)
Less than comparison operator.
|
static Query |
lt(Query otherQuery)
Less than comparison operator.
|
static Query |
minute(Query exp)
The minute component value of the parameter value.
|
static Query |
minute(java.lang.String field)
The minute component value of the parameter value.
|
static Query |
mod()
Reminder (or modulo) operator.
|
static Query |
mod(java.lang.Number val)
Reminder (or modulo) operator.
|
static Query |
mod(Query otherQuery)
Reminder (or modulo) operator.
|
static Query |
month(Query exp)
The month component value of the parameter value.
|
static Query |
month(java.lang.String field)
The month component value of the parameter value.
|
static Query |
mul()
Multiply operator.
|
static Query |
mul(java.lang.Number val)
Multiply operator.
|
static Query |
mul(Query otherQuery)
Multiply operator.
|
static Query |
ne()
Not equal comparison operator.
|
static Query |
ne(boolean booleanValue)
Not equal comparison operator.
|
static Query |
ne(java.lang.Number numberValue)
Not equal comparison operator.
|
static Query |
ne(Query otherQuery)
Not equal comparison operator.
|
static Query |
ne(java.lang.String stringValue)
Not equal comparison operator.
|
static Query |
not()
Logical not.
|
static Query |
not(boolean booleanValue)
Logical not.
|
static Query |
not(Query otherQuery)
Logical not.
|
static Query |
or()
Conditional or.
|
static Query |
or(Query otherQuery)
Conditional or.
|
static Query |
query(Query subQuery)
Creates Query with an existing query as its only internal
value
|
static Query |
replace(Query str,
Query find,
Query replace)
Finds the second string parameter in the first parameter string value and
replaces it with the third parameter value.
|
static Query |
replace(java.lang.String field,
java.lang.String find,
java.lang.String replace)
Finds the second string parameter in the first parameter string value and
replaces it with the third parameter value.
|
static Query |
round(Query exp)
The nearest integral value to the parameter value.
|
static Query |
second(Query exp)
The second component value of the parameter value.
|
static Query |
second(java.lang.String field)
The second component value of the parameter value.
|
static Query |
startsWith(Query field,
Query start)
Whether the beginning of the first parameter values matches the second
parameter value.
|
static Query |
startsWith(java.lang.String field,
java.lang.String start)
Whether the beginning of the first parameter values matches the second
parameter value.
|
static Query |
sub()
Subtract operator.
|
static Query |
sub(java.lang.Number val)
Subtract operator.
|
static Query |
sub(Query otherQuery)
Subtract operator.
|
static Query |
subString(Query str,
Query pos)
String value starting at the character index specified by the second
parameter value in the first parameter string value.
|
static Query |
subString(Query str,
Query pos,
Query length)
String value starting at the character index specified by the second
parameter value in the first parameter string value.
|
static Query |
subString(java.lang.String field,
int pos)
String value starting at the character index specified by the second
parameter value in the first parameter string value.
|
static Query |
subString(java.lang.String field,
int pos,
int length)
String value starting at the character index specified by the second
parameter value in the first parameter string value.
|
static Query |
subStringOf(Query str1,
Query str2)
Whether the first parameter string value occurs in the second parameter
string value.
|
static Query |
subStringOf(java.lang.String str,
java.lang.String field)
Whether the string parameter occurs in the field
|
static Query |
toLower(Query exp)
String value with the contents of the parameter value converted to lower
case.
|
static Query |
toLower(java.lang.String field)
String value with the contents of the parameter value converted to lower
case.
|
static Query |
toUpper(Query exp)
String value with the contents of the parameter value converted to upper
case
|
static Query |
toUpper(java.lang.String field)
String value with the contents of the parameter value converted to upper
case
|
static Query |
trim(Query exp)
String value with the contents of the parameter value with all leading
and trailing white-space characters removed.
|
static Query |
trim(java.lang.String field)
String value with the contents of the parameter value with all leading
and trailing white-space characters removed.
|
static Query |
val(boolean val)
Creates a Query representing a boolean value
|
static Query |
val(java.lang.Number number)
Creates a Query representing a numeric value
|
static Query |
val(java.lang.String s)
Creates a Query representing a string value
|
static Query |
year(Query exp)
The year component value of the parameter value.
|
static Query |
year(java.lang.String field)
The year component value of the parameter value.
|
public static Query query(Query subQuery)
subQuery - the sub querypublic static Query field(java.lang.String fieldName)
fieldName - The name of the fieldpublic static Query val(java.lang.Number number)
number - the number to representpublic static Query val(boolean val)
val - the boolean to representpublic static Query val(java.lang.String s)
s - the string to representpublic static Query and()
public static Query and(Query otherQuery)
otherQuery - the other querypublic static Query or()
public static Query or(Query otherQuery)
otherQuery - the other querypublic static Query not()
public static Query not(Query otherQuery)
otherQuery - the other querypublic static Query not(boolean booleanValue)
booleanValue - the boolean valuepublic static Query ge()
public static Query ge(Query otherQuery)
otherQuery - the other querypublic static Query ge(java.lang.Number numberValue)
numberValue - the number valuepublic static Query le()
public static Query le(Query otherQuery)
otherQuery - the other querypublic static Query le(java.lang.Number numberValue)
numberValue - the number valuepublic static Query gt()
public static Query gt(Query otherQuery)
otherQuery - the other querypublic static Query gt(java.lang.Number numberValue)
numberValue - the number valuepublic static Query lt()
public static Query lt(Query otherQuery)
otherQuery - the other querypublic static Query lt(java.lang.Number numberValue)
numberValue - the number valuepublic static Query eq()
public static Query eq(Query otherQuery)
otherQuery - the other querypublic static Query eq(java.lang.Number numberValue)
numberValue - the number valuepublic static Query eq(boolean booleanValue)
booleanValue - the boolean valuepublic static Query eq(java.lang.String stringValue)
stringValue - the string valuepublic static Query ne()
public static Query ne(Query otherQuery)
otherQuery - the other querypublic static Query ne(java.lang.Number numberValue)
numberValue - the number valuepublic static Query ne(boolean booleanValue)
booleanValue - the boolean valuepublic static Query ne(java.lang.String stringValue)
stringValue - the string valuepublic static Query add()
public static Query add(Query otherQuery)
otherQuery - the other querypublic static Query add(java.lang.Number val)
val - the valpublic static Query sub()
public static Query sub(Query otherQuery)
otherQuery - the other querypublic static Query sub(java.lang.Number val)
val - the valpublic static Query mul()
public static Query mul(Query otherQuery)
otherQuery - the other querypublic static Query mul(java.lang.Number val)
val - the valpublic static Query div()
public static Query div(Query otherQuery)
otherQuery - the other querypublic static Query div(java.lang.Number val)
val - the valpublic static Query mod()
public static Query mod(Query otherQuery)
otherQuery - the other querypublic static Query mod(java.lang.Number val)
val - the valpublic static Query year(Query exp)
exp - the exppublic static Query year(java.lang.String field)
field - the fieldpublic static Query month(Query exp)
exp - the exppublic static Query month(java.lang.String field)
field - the fieldpublic static Query day(Query exp)
exp - the exppublic static Query day(java.lang.String field)
field - the fieldpublic static Query hour(Query exp)
exp - the exppublic static Query hour(java.lang.String field)
field - the fieldpublic static Query minute(Query exp)
exp - the exppublic static Query minute(java.lang.String field)
field - the fieldpublic static Query second(Query exp)
exp - the exppublic static Query second(java.lang.String field)
field - the fieldpublic static Query floor(Query exp)
exp - the exppublic static Query ceiling(Query exp)
exp - the exppublic static Query round(Query exp)
exp - the exppublic static Query toLower(Query exp)
exp - the exppublic static Query toLower(java.lang.String field)
field - the fieldpublic static Query toUpper(Query exp)
exp - the exppublic static Query toUpper(java.lang.String field)
field - the fieldpublic static Query length(Query exp)
exp - the exppublic static Query length(java.lang.String field)
field - the fieldpublic static Query trim(Query exp)
exp - the exppublic static Query trim(java.lang.String field)
field - the fieldpublic static Query startsWith(Query field, Query start)
field - The field to evaluate.start - Start value.public static Query startsWith(java.lang.String field, java.lang.String start)
field - The field to evaluate.start - Start value.public static Query endsWith(Query field, Query end)
field - The field to evaluate.end - End value.public static Query endsWith(java.lang.String field, java.lang.String end)
field - The field to evaluate.end - End value.public static Query subStringOf(Query str1, Query str2)
str1 - First stringstr2 - Second stringpublic static Query subStringOf(java.lang.String str, java.lang.String field)
str - String to searchfield - Field to search inpublic static Query concat(Query str1, Query str2)
str1 - First stringstr2 - Second stringpublic static Query indexOf(Query haystack, Query needle)
haystack - String contentneedle - Value to search forpublic static Query indexOf(java.lang.String field, java.lang.String str)
field - Field to seach instr - Value to search forpublic static Query subString(Query str, Query pos)
str - String contentpos - Starting positionpublic static Query subString(java.lang.String field, int pos)
field - Field to scanpos - Starting positionpublic static Query subString(Query str, Query pos, Query length)
str - String contentpos - Starting positionlength - Lengthpublic static Query subString(java.lang.String field, int pos, int length)
field - Field to scanpos - Starting positionlength - Lengthpublic static Query replace(Query str, Query find, Query replace)
str - String contentfind - Search valuereplace - Replace valuepublic static Query replace(java.lang.String field, java.lang.String find, java.lang.String replace)
field - Field to scanfind - Search valuereplace - Replace value