|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.query.SearchCondition
public class SearchCondition
This class represents a search condition on a query. When appended to
a QuerySpec, the values will be used in the SQL WHERE clause.
Supported API: true
Extendable: false
| Field Summary | |
|---|---|
static String |
BETWEEN
Specifies the SearchCondition between operator. |
static String |
EQUAL
Specifies the SearchCondition equality operator, '='. |
static String |
GREATER_THAN
Specifies the SearchCondition comparison operator, '>'. |
static String |
GREATER_THAN_OR_EQUAL
Specifies the SearchCondition comparison operator, '>='. |
static String |
IN
Specifies the SearchCondition list operator. |
static String |
IS_FALSE
Specifies the SearchCondition boolean operator, 'false'. |
static String |
IS_NULL
Specifies the SearchCondition operator to check for null value. |
static String |
IS_TRUE
Specifies the SearchCondition boolean operator, 'true'. |
static int |
LEFT_OUTER_JOIN
Indicates that the left hand side column is an outer join. |
static String |
LESS_THAN
Specifies the SearchCondition comparison operator, '<'. |
static String |
LESS_THAN_OR_EQUAL
Specifies the SearchCondition comparison operator, '<='. |
static String |
LIKE
Specifies the SearchCondition pattern matching operator. |
static int |
NO_OUTER_JOIN
Indicates that no outer join column is specified. |
static String |
NOT_BETWEEN
Specifies the SearchCondition negated between operator. |
static String |
NOT_EQUAL
Specifies the SearchCondition inequality operator, '<>'. |
static String |
NOT_IN
Specifies the SearchCondition negated list operator. |
static String |
NOT_LIKE
Specifies the SearchCondition negated pattern matching operator. |
static String |
NOT_NULL
Specifies the SearchCondition operator to check for non-null value. |
static int |
RIGHT_OUTER_JOIN
Indicates that the right hand side column is an outer join. |
| Fields inherited from interface wt.query.WhereExpression |
|---|
FROM_INDICIES |
| Constructor Summary | |
|---|---|
SearchCondition(Class targetClass,
String anAttribute,
boolean isNull)
Specify a criteria for the query to test an attribute for NULL/NOT NULL. |
|
SearchCondition(Class targetClass,
String anAttribute,
boolean isBetween,
AttributeRange value)
Specify a search condition for the query based on a range of a timestamp, long, float, or integer. |
|
SearchCondition(Class targetClass,
String targetAttribute,
Class linkClass,
String linkAttribute)
Specify a criteria for the query to join a target and a link. |
|
SearchCondition(Class targetClass,
String attribute,
Integer[] value,
boolean negate)
Specify a search condition for the query based on an array of values of a Integer attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
long[] value)
Specify a search condition for the query based on an array of values of a long attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
long[] value,
boolean negate)
Specify a search condition for the query based on an array of values of a long attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator)
Specify a search condition for the query based on a value of a boolean attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String[] value,
boolean caseSensitive)
Specify a search condition for the query based on an array of values of a String attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String[] value,
boolean caseSensitive,
boolean negate)
Specify a search condition for the query based on an array of values of a String attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
BigDecimal value)
Specify a search condition for the query based on a value of a BIGDECIMAL attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
boolean placeholder)
Specify a criteria for the query to add a placeholder. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
byte value)
Specify a search condition for the query based on a value of a byte attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
Byte value)
Specify a search condition for the query based on a value of a byte attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
char value)
Specify a search condition for the query based on a value of a Character attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
Character value)
Specify a search condition for the query based on a value of a Character attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
Date value)
Specify a search condition for the query based on a value of a date attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
double value)
Specify a search condition for the query based on a value of a double attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
Double value)
Specify a search condition for the query based on a value of a double attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
EnumeratedType value)
Specify a search condition for the query based on an EnumeratedType. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
float value)
Specify a search condition for the query based on a value of a float attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
Float value)
Specify a search condition for the query based on a value of a float attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
int value)
Specify a search condition for the query based on a value of a integer attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
Integer value)
Specify a search condition for the query based on a value of a integer attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
long value)
Specify a search condition for the query based on a value of a long attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
Long value)
Specify a search condition for the query based on a value of a long attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
ObjectIdentifier value)
Create a search condition for the query based on a value of an ObjectIdentifier type. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
short value)
Specify a search condition for the query based on a value of a short attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
Short value)
Specify a search condition for the query based on a value of a Short attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
String value)
Specify a search condition for the query based on a value of a string attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
String value,
boolean caseSensitive)
Specify a search condition for the query based on a value of a string attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
Time value)
Specify a search condition for the query based on a value of a time attribute. |
|
SearchCondition(Class targetClass,
String anAttribute,
String operator,
Timestamp value)
Specify a search condition for the query based on a value of a timestamp attribute. |
|
SearchCondition(RelationalExpression a_leftHandSide,
String a_operator)
Constructs a SearchCondition. |
|
SearchCondition(RelationalExpression a_leftHandSide,
String a_operator,
RelationalExpression a_rightHandSide)
Constructs a SearchCondition. |
|
| Method Summary | |
|---|---|
String |
getOption()
Deprecated. as of R7.0, use the "UseEscape" attribute of wt.query.ConstantExpression. |
int |
getOuterJoin()
Gets the value of the attribute: outerJoin; Indicates the outer join column, if applicable. |
int |
setFromIndicies(int[] a_fromIndicies,
int a_offset)
This method sets the From clause indicies for components of the expression. |
void |
setOption(String a_Option)
Deprecated. as of R7.0, use the "UseEscape" attribute of wt.query.ConstantExpression. |
void |
setOuterJoin(int a_OuterJoin)
Sets the value of the attribute: outerJoin; Indicates the outer join column, if applicable. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_OUTER_JOIN
public static final int LEFT_OUTER_JOIN
public static final int RIGHT_OUTER_JOIN
public static final String EQUAL
public static final String NOT_EQUAL
public static final String LIKE
public static final String NOT_LIKE
public static final String GREATER_THAN
public static final String GREATER_THAN_OR_EQUAL
public static final String LESS_THAN
public static final String LESS_THAN_OR_EQUAL
public static final String IS_TRUE
public static final String IS_FALSE
public static final String IS_NULL
public static final String NOT_NULL
public static final String IN
public static final String BETWEEN
public static final String NOT_IN
public static final String NOT_BETWEEN
| Constructor Detail |
|---|
public SearchCondition(RelationalExpression a_leftHandSide,
String a_operator,
RelationalExpression a_rightHandSide)
throws QueryException
a_leftHandSide - Left hand side operand.a_operator - SQL operatora_rightHandSide - Right hand side operand.
QueryException
public SearchCondition(RelationalExpression a_leftHandSide,
String a_operator)
throws QueryException
a_leftHandSide - Left hand side operand.a_operator - SQL operator
QueryException
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
ObjectIdentifier value)
throws QueryException
attribute - The string attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The ObjectIdentifier instance for the search condition.
QueryException - Occurs if the given attribute is not a string type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
String value)
throws QueryException
attribute - The string attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The string value for the search condition.
QueryException - Occurs if the given attribute is not a string type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
String value,
boolean caseSensitive)
throws QueryException
attribute - The string attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The string value for the search condition.caseSensitive - true | false specify whether to ignore case in comparison
QueryException - Occurs if the given attribute is not a string type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
Character value)
throws QueryException
attribute - The string attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The Character value for the search condition.
QueryException - Occurs if the given attribute is not a string type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
char value)
throws QueryException
attribute - The string attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The char value for the search condition.
QueryException - Occurs if the given attribute is not a char type.
public SearchCondition(Class targetClass,
String anAttribute,
String[] value,
boolean caseSensitive)
throws QueryException
anAttribute - The long attribute name.value - The array of String values for the search condition.caseSensitive - true | false specify whether to ignore case in comparison
QueryException - Occurs if the given attribute is not an long type.
public SearchCondition(Class targetClass,
String anAttribute,
String[] value,
boolean caseSensitive,
boolean negate)
throws QueryException
anAttribute - The long attribute name.value - The array of String values for the search condition.caseSensitive - true | false specify whether to ignore case in comparisonnegate - sets search condition to NOT IN
QueryException - Occurs if the given attribute is not an long type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator)
throws QueryException
anAttribute - The boolean attribute name.operator - The operators for the search condition: values may be
IS_TRUE, IS_FALSE.
QueryException - Occurs if the given attribute is not a boolean type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
BigDecimal value)
throws QueryException
anAttribute - The BigDecimal attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The BigDecimal value for the search condition.
QueryException - Occurs if the given attribute is not an BigDecimal type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
Byte value)
throws QueryException
anAttribute - The byte attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The integer value for the search condition.
QueryException - Occurs if the given attribute is not an Byte type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
byte value)
throws QueryException
anAttribute - The byte attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The integer value for the search condition.
QueryException - Occurs if the given attribute is not an byte type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
Double value)
throws QueryException
anAttribute - The double attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The double value for the search condition.
QueryException - Occurs if the given attribute is not an Double type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
double value)
throws QueryException
anAttribute - The double attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The double value for the search condition.
QueryException - Occurs if the given attribute is not an double type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
Float value)
throws QueryException
anAttribute - The float attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The Float value for the search condition.
QueryException - Occurs if the given attribute is not an Float type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
float value)
throws QueryException
anAttribute - The float attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The Float value for the search condition.
QueryException - Occurs if the given attribute is not an Float type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
Integer value)
throws QueryException
anAttribute - The integer attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The integer value for the search condition.
QueryException - Occurs if the given attribute is not an integer type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
int value)
throws QueryException
anAttribute - The integer attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The integer value for the search condition.
QueryException - Occurs if the given attribute is not an int type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
Long value)
throws QueryException
anAttribute - The long attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The Long value for the search condition.
QueryException - Occurs if the given attribute is not an Long type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
long value)
throws QueryException
anAttribute - The long attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The long value for the search condition.
QueryException - Occurs if the given attribute is not an long type.
public SearchCondition(Class targetClass,
String anAttribute,
long[] value)
throws QueryException
anAttribute - The long attribute name.value - The long value for the search condition.
QueryException - Occurs if the given attribute is not an long type.
public SearchCondition(Class targetClass,
String attribute,
Integer[] value,
boolean negate)
throws QueryException
anAttribute - The long attribute name.value - The Integer values for the search condition.negate - sets search condition to NOT IN
QueryException - Occurs if the given attribute is not an int type.
public SearchCondition(Class targetClass,
String anAttribute,
long[] value,
boolean negate)
throws QueryException
anAttribute - The long attribute name.value - The long values for the search condition.negate - sets search condition to NOT IN
QueryException - Occurs if the given attribute is not an long type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
Short value)
throws QueryException
anAttribute - The short attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The Short value for the search condition.
QueryException - Occurs if the given attribute is not an Short type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
short value)
throws QueryException
anAttribute - The short attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The short value for the search condition.
QueryException - Occurs if the given attribute is not an short type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
Date value)
throws QueryException
anAttribute - The date attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The date value for the search condition.
QueryException - Occurs if the given attribute is not an date type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
Time value)
throws QueryException
anAttribute - The time attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The time value for the search condition.
QueryException - Occurs if the given attribute is not an time type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
Timestamp value)
throws QueryException
anAttribute - The timestamp attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The timestamp value for the search condition.
QueryException - Occurs if the given attribute is not an timestamp type.
public SearchCondition(Class targetClass,
String anAttribute,
boolean isBetween,
AttributeRange value)
throws QueryException
anAttribute - The timestamp attribute name.isBetween - Specifies whether to query for timestamps between the dates or notvalue - The AttributeRange value for the search condition.
QueryException - Occurs if the given attribute is not an timestamp type.
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
EnumeratedType value)
throws QueryException
anAttribute - The EnumeratedType attribute name.operator - The operators for the search condition with a value
from the Operator_Constant List i.e. EQUAL, LESS_THAN, etc.value - The EnumeratedType value for the search condition.
QueryException - Occurs if the given attribute is not an EnumeratedType type.
public SearchCondition(Class targetClass,
String anAttribute,
boolean isNull)
throws QueryException
anAttribute - The attribute name.
QueryException
public SearchCondition(Class targetClass,
String targetAttribute,
Class linkClass,
String linkAttribute)
throws QueryException
targetClass - The class of one side of the jointargetAttribute - The attribute to use on the join.linkClass - The class Link or subclass of Link to be used with the joinlinkAttribute - The attribute belonging to link to use on the join
QueryException
public SearchCondition(Class targetClass,
String anAttribute,
String operator,
boolean placeholder)
throws QueryException
targetClass - The class of anAttributeanAttribute - The attribute to use on the left side of the equationoperator - Which operation, such as EQUALplaceholder - boolean showing a placeholder should be inserted
QueryException| Method Detail |
|---|
public String getOption()
public void setOption(String a_Option)
throws WTPropertyVetoException
a_Option -
WTPropertyVetoExceptionpublic int getOuterJoin()
public void setOuterJoin(int a_OuterJoin)
throws WTPropertyVetoException
a_OuterJoin -
WTPropertyVetoException
public int setFromIndicies(int[] a_fromIndicies,
int a_offset)
setFromIndicies in interface WhereExpressiona_fromIndicies - From indicies to set.a_offset - Offset index into the From indicies array for the next valid From index
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||