public class Query
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MATCH_ALL |
static java.lang.String |
MATCH_ANY |
protected static java.lang.String |
STR_SV_LITERAL |
| Constructor and Description |
|---|
Query(LoginEnvironment loginEnv)
Create a Query, and add it to a form request, to apply that query to the request.
|
| Modifier and Type | Method and Description |
|---|---|
BetweenCondition |
addBetweenCondition(java.lang.String controlId)
Add a between condition to determine if a field value is between to other specified values.
|
DateCondition |
addDateCondition(java.lang.String controlId,
DateOperator dateOperator)
Add a date condition to compare a date field to a date value based on the specified date operator
|
ListCondition |
addListCondition(java.lang.String controlId)
After creating the Query object you can add a list condition, to compare a field to a list of values.
|
NumberCondition |
addNumberCondition(java.lang.String controlId,
NumericOperator numOperator)
Add a number condition to compare a numeric field from the form to a numeric value
|
StringCondition |
addStringCondition(java.lang.String controlId,
StringOperator strOperator,
java.lang.String value)
Add a string condition to compare a string feild from the form to a string value
|
StringCondition |
addStringConditionUserId(java.lang.String controlId,
StringOperator strOperator)
Add a string condition user id to compare a string field from the form to the currently logged in user id
|
java.util.ArrayList<Condition> |
getCondition() |
java.lang.String |
getMatchType() |
boolean |
isAutoClear() |
boolean |
isAutoFind() |
void |
setAutoClear(boolean autoClear)
Set AutoClear to true to clear the form before performing the query
|
void |
setAutoFind(boolean autoFind)
Set AutoFind to true to automatically press the find button to popoulate the reocrds.
|
protected void |
setCondition(java.util.ArrayList<Condition> condition) |
void |
setMatchType(java.lang.String matchType)
Set the match type to MATCH_ALL to indicate all of the conditions must be met (AND).
|
public static final java.lang.String MATCH_ALL
public static final java.lang.String MATCH_ANY
protected static java.lang.String STR_SV_LITERAL
public Query(LoginEnvironment loginEnv) throws CapabilityException
loginEnv - CapabilityExceptionpublic ListCondition addListCondition(java.lang.String controlId)
controlId - public BetweenCondition addBetweenCondition(java.lang.String controlId)
controlId - public DateCondition addDateCondition(java.lang.String controlId, DateOperator dateOperator)
controlId - operator - public NumberCondition addNumberCondition(java.lang.String controlId, NumericOperator numOperator)
controlId - numOperator - public StringCondition addStringCondition(java.lang.String controlId, StringOperator strOperator, java.lang.String value)
controlId - strOperator - value - public StringCondition addStringConditionUserId(java.lang.String controlId, StringOperator strOperator)
controlId - strOperator - protected void setCondition(java.util.ArrayList<Condition> condition)
public java.util.ArrayList<Condition> getCondition()
public void setAutoFind(boolean autoFind)
autoFind - public boolean isAutoFind()
public void setMatchType(java.lang.String matchType)
matchType - public java.lang.String getMatchType()
public void setAutoClear(boolean autoClear)
autoClear - public boolean isAutoClear()
Copyright © 2015 Oracle and/or its affiliates. All Rights Reserved.