public final class Query
extends java.lang.Object
| Constructor and Description |
|---|
Query()
Creates an empty Query
|
| Modifier and Type | Method and Description |
|---|---|
Query |
add()
Add operator.
|
Query |
add(java.lang.Number val)
Add operator.
|
Query |
add(Query otherQuery)
Add operator.
|
Query |
and()
Conditional and.
|
Query |
and(Query otherQuery)
Conditional and.
|
Query |
ceiling(Query otherQuery)
The smallest integral value greater than or equal to the parameter value.
|
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.
|
Query |
day(Query otherQuery)
The day component value of the parameter value.
|
Query |
day(java.lang.String field)
The day component value of the parameter value.
|
Query |
div()
Divide operator.
|
Query |
div(java.lang.Number val)
Divide operator.
|
Query |
div(Query otherQuery)
Divide operator.
|
Query |
endsWith(Query field,
Query end)
Whether the end of the first parameter value matches the second parameter
value.
|
Query |
endsWith(java.lang.String field,
java.lang.String end)
Whether the end of the first parameter value matches the second parameter
value.
|
void |
ensureIdProperty()
Ensure id property.
|
Query |
eq()
Equal comparison operator.
|
Query |
eq(boolean booleanValue)
Equal comparison operator.
|
Query |
eq(java.lang.Number numberValue)
Equal comparison operator.
|
Query |
eq(Query otherQuery)
Equal comparison operator.
|
Query |
eq(java.lang.String stringValue)
Equal comparison operator.
|
Query |
expand(java.lang.String... fields)
Specifies the fields to expand
|
Query |
field(java.lang.String fieldName)
Specifies the field to use
|
Query |
floor(Query otherQuery)
The largest integral value less than or equal to the parameter value.
|
Query |
ge()
Greater than or equal comparison operator.
|
Query |
ge(java.lang.Number numberValue)
Greater than or equal comparison operator.
|
Query |
ge(Query otherQuery)
Greater than or equal comparison operator.
|
java.lang.String |
getQueryText()
Returns the main text of the query
|
java.lang.String |
getRowSetModifiers()
Returns the string representation of the rowset's modifiers
|
Query |
gt()
Greater than comparison operator.
|
Query |
gt(java.lang.Number numberValue)
Greater than comparison operator.
|
Query |
gt(Query otherQuery)
Greater than comparison operator.
|
Query |
hour(Query otherQuery)
The hour component value of the parameter value.
|
Query |
hour(java.lang.String field)
The hour component value of the parameter value.
|
Query |
includeInlineCount()
The inlinecount property specifies whether or not to retrieve a property
with the number of records returned.
|
Query |
indexOf(Query haystack,
Query needle)
Index of the first occurrence of the second parameter value in the first
parameter value or -1 otherwise.
|
Query |
indexOf(java.lang.String field,
java.lang.String needle)
Index of the first occurrence of the second parameter value in the first
parameter value or -1 otherwise.
|
Query |
le()
Less than or equal comparison operator.
|
Query |
le(java.lang.Number numberValue)
Less than or equal comparison operator.
|
Query |
le(Query otherQuery)
Less than or equal comparison operator.
|
Query |
length(Query exp)
The number of characters in the specified parameter value.
|
Query |
length(java.lang.String field)
The number of characters in the specified parameter value.
|
Query |
lt()
Less than comparison operator.
|
Query |
lt(java.lang.Number numberValue)
Less than comparison operator.
|
Query |
lt(Query otherQuery)
Less than comparison operator.
|
Query |
minute(Query otherQuery)
The minute component value of the parameter value.
|
Query |
minute(java.lang.String field)
The minute component value of the parameter value.
|
Query |
mod()
Reminder (or modulo) operator.
|
Query |
mod(java.lang.Number val)
Reminder (or modulo) operator.
|
Query |
mod(Query otherQuery)
Reminder (or modulo) operator.
|
Query |
month(Query otherQuery)
The month component value of the parameter value.
|
Query |
month(java.lang.String field)
The month component value of the parameter value.
|
Query |
mul()
Multiply operator.
|
Query |
mul(java.lang.Number val)
Multiply operator.
|
Query |
mul(Query otherQuery)
Multiply operator.
|
Query |
ne()
Not equal comparison operator.
|
Query |
ne(boolean booleanValue)
Not equal comparison operator.
|
Query |
ne(java.lang.Number numberValue)
Not equal comparison operator.
|
Query |
ne(Query otherQuery)
Not equal comparison operator.
|
Query |
ne(java.lang.String stringValue)
Not equal comparison operator.
|
Query |
not()
Logical not.
|
Query |
not(boolean booleanValue)
Logical not.
|
Query |
not(Query otherQuery)
Logical not.
|
Query |
or()
Conditional or.
|
Query |
or(Query otherQuery)
Conditional or.
|
Query |
orderBy(java.lang.String field,
QueryOrder order)
Adds a new order by statement
|
Query |
parameter(java.lang.String parameter,
java.lang.String value)
Adds a new user-defined parameter to the query
|
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.
|
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.
|
Query |
round(Query otherQuery)
The nearest integral value to the parameter value.
|
Query |
second(Query otherQuery)
The second component value of the parameter value.
|
Query |
second(java.lang.String field)
The second component value of the parameter value.
|
Query |
select(java.lang.String... fields)
Specifies the fields to retrieve
|
void |
setQueryText(java.lang.String queryText)
Sets the main text of the query
|
Query |
skip(int skip)
Sets the number of records to skip over a given number of elements in a
sequence and then return the remainder.
|
Query |
startsWith(Query field,
Query start)
Whether the beginning of the first parameter values matches the second
parameter value.
|
Query |
startsWith(java.lang.String field,
java.lang.String start)
Whether the beginning of the first parameter values matches the second
parameter value.
|
Query |
sub()
Subtract operator.
|
Query |
sub(java.lang.Number val)
Subtract operator.
|
Query |
sub(Query otherQuery)
Subtract operator.
|
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.
|
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.
|
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.
|
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.
|
Query |
subStringOf(Query str1,
Query str2)
Whether the first parameter string value occurs in the second parameter
string value.
|
Query |
subStringOf(java.lang.String str,
java.lang.String field)
Whether the string parameter occurs in the field
|
Query |
toLower(Query exp)
String value with the contents of the parameter value converted to lower
case.
|
Query |
toLower(java.lang.String field)
String value with the contents of the parameter value converted to lower
case.
|
Query |
top(int top)
Sets the number of records to return
|
java.lang.String |
toString()
Returns the string representation of the query
|
Query |
toUpper(Query exp)
String value with the contents of the parameter value converted to upper
case.
|
Query |
toUpper(java.lang.String field)
String value with the contents of the parameter value converted to upper
case.
|
Query |
trim(Query exp)
String value with the contents of the parameter value with all leading
and trailing white-space characters removed.
|
Query |
trim(java.lang.String field)
String value with the contents of the parameter value with all leading
and trailing white-space characters removed.
|
Query |
val(boolean val)
Val query.
|
Query |
val(java.lang.Number number)
Specifies a numeric value
|
Query |
val(java.lang.String s)
Val query.
|
Query |
year(Query otherQuery)
The year component value of the parameter value.
|
Query |
year(java.lang.String field)
The year component value of the parameter value.
|
public void ensureIdProperty()
public java.lang.String getQueryText()
public void setQueryText(java.lang.String queryText)
queryText - The text to setpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getRowSetModifiers()
public Query parameter(java.lang.String parameter, java.lang.String value)
parameter - The parameter namevalue - The parameter valuepublic Query orderBy(java.lang.String field, QueryOrder order)
field - FieldNameorder - Sorting orderpublic Query top(int top)
top - Number of records to returnpublic Query skip(int skip)
skip - the skippublic Query includeInlineCount()
public Query select(java.lang.String... fields)
fields - Names of the fields to retrievepublic Query expand(java.lang.String... fields)
fields - Names of the fields to expandpublic Query field(java.lang.String fieldName)
fieldName - The field to usepublic Query val(java.lang.Number number)
number - The numeric value to usepublic Query val(boolean val)
val - the valpublic Query val(java.lang.String s)
s - the spublic Query and()
public Query and(Query otherQuery)
otherQuery - the other querypublic Query or()
public Query or(Query otherQuery)
otherQuery - the other querypublic Query not()
public Query not(Query otherQuery)
otherQuery - the other querypublic Query not(boolean booleanValue)
booleanValue - the boolean valuepublic Query ge()
public Query ge(Query otherQuery)
otherQuery - the other querypublic Query ge(java.lang.Number numberValue)
numberValue - the number valuepublic Query le()
public Query le(Query otherQuery)
otherQuery - the other querypublic Query le(java.lang.Number numberValue)
numberValue - the number valuepublic Query gt()
public Query gt(Query otherQuery)
otherQuery - the other querypublic Query gt(java.lang.Number numberValue)
numberValue - the number valuepublic Query lt()
public Query lt(Query otherQuery)
otherQuery - the other querypublic Query lt(java.lang.Number numberValue)
numberValue - the number valuepublic Query eq()
public Query eq(Query otherQuery)
otherQuery - the other querypublic Query eq(java.lang.Number numberValue)
numberValue - the number valuepublic Query eq(boolean booleanValue)
booleanValue - the boolean valuepublic Query eq(java.lang.String stringValue)
stringValue - the string valuepublic Query ne()
public Query ne(Query otherQuery)
otherQuery - the other querypublic Query ne(java.lang.Number numberValue)
numberValue - the number valuepublic Query ne(boolean booleanValue)
booleanValue - the boolean valuepublic Query ne(java.lang.String stringValue)
stringValue - the string valuepublic Query add()
public Query add(Query otherQuery)
otherQuery - the other querypublic Query add(java.lang.Number val)
val - the valpublic Query sub()
public Query sub(Query otherQuery)
otherQuery - the other querypublic Query sub(java.lang.Number val)
val - the valpublic Query mul()
public Query mul(Query otherQuery)
otherQuery - the other querypublic Query mul(java.lang.Number val)
val - the valpublic Query div()
public Query div(Query otherQuery)
otherQuery - the other querypublic Query div(java.lang.Number val)
val - the valpublic Query mod()
public Query mod(Query otherQuery)
otherQuery - the other querypublic Query mod(java.lang.Number val)
val - the valpublic Query year(Query otherQuery)
otherQuery - the other querypublic Query year(java.lang.String field)
field - the fieldpublic Query month(Query otherQuery)
otherQuery - the other querypublic Query month(java.lang.String field)
field - the fieldpublic Query day(Query otherQuery)
otherQuery - the other querypublic Query day(java.lang.String field)
field - the fieldpublic Query hour(Query otherQuery)
otherQuery - the other querypublic Query hour(java.lang.String field)
field - the fieldpublic Query minute(Query otherQuery)
otherQuery - the other querypublic Query minute(java.lang.String field)
field - the fieldpublic Query second(Query otherQuery)
otherQuery - the other querypublic Query second(java.lang.String field)
field - the fieldpublic Query floor(Query otherQuery)
otherQuery - the other querypublic Query ceiling(Query otherQuery)
otherQuery - the other querypublic Query round(Query otherQuery)
otherQuery - the other querypublic Query toLower(Query exp)
exp - the exppublic Query toLower(java.lang.String field)
field - the fieldpublic Query toUpper(Query exp)
exp - the exppublic Query toUpper(java.lang.String field)
field - the fieldpublic Query length(Query exp)
exp - the exppublic Query length(java.lang.String field)
field - the fieldpublic Query trim(Query exp)
exp - the exppublic Query trim(java.lang.String field)
field - the fieldpublic Query startsWith(Query field, Query start)
field - The field to evaluatestart - Start valuepublic Query startsWith(java.lang.String field, java.lang.String start)
field - The field to evaluatestart - Start valuepublic Query endsWith(Query field, Query end)
field - The field to evaluateend - End valuepublic Query endsWith(java.lang.String field, java.lang.String end)
field - The field to evaluateend - End valuepublic Query subStringOf(Query str1, Query str2)
str1 - First stringstr2 - Second stringpublic Query subStringOf(java.lang.String str, java.lang.String field)
str - the strfield - Field to search inpublic Query concat(Query str1, Query str2)
str1 - First stringstr2 - Second stringpublic Query indexOf(Query haystack, Query needle)
haystack - String contentneedle - Value to search forpublic Query indexOf(java.lang.String field, java.lang.String needle)
field - Field to search inneedle - the needlepublic Query subString(Query str, Query pos)
str - String contentpos - Starting positionpublic Query subString(java.lang.String field, int pos)
field - Field to scanpos - Starting positionpublic Query subString(Query str, Query pos, Query length)
str - String contentpos - Starting positionlength - Lengthpublic Query subString(java.lang.String field, int pos, int length)
field - Field to scanpos - Starting positionlength - Lengthpublic Query replace(Query str, Query find, Query replace)
str - String contentfind - Search valuereplace - Replace valuepublic Query replace(java.lang.String field, java.lang.String find, java.lang.String replace)
field - Field to scanfind - Search valuereplace - Replace value