|
Oracle Fusion Middleware Java API Reference for Oracle Team Productivity Center 11g Release 2 (11.1.2.0.0) E17494-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.alm.connector.data.Criterion
public class Criterion
The Criterion
represents a single query criterion in a connector query.
This query object is passed to the connector by OTPC connector framework as the result of a search action on the OTPC client. Connector writer can use this Query Object to configure and implement the query against the backend repository and return the query result for the OTPC client.
Field Summary | |
---|---|
static Criterion |
EMPTY_CRITERION
|
static java.lang.String |
OPERATOR_EQUAL
|
static java.lang.String |
OPERATOR_GREATTHAN
|
static java.lang.String |
OPERATOR_GREATTHANOREQUAL
|
static java.lang.String |
OPERATOR_LESSTHANOREQUAL
|
static java.lang.String |
OPERATOR_LESSTTHAN
|
static java.lang.String |
OPERATOR_LIKE
|
static java.lang.String |
OPERATOR_NOTEQUAL
|
static java.lang.String |
QUERY_NULL_VALUE
|
Constructor Summary | |
---|---|
Criterion()
|
|
Criterion(java.lang.String attribute,
Operator operator,
java.lang.Object value)
Constructs a criterion for specified field, operator, and value. |
|
Criterion(java.lang.String attribute,
java.lang.String description,
Operator operator,
java.lang.Object value)
|
Method Summary | |
---|---|
java.lang.String |
getAttribute()
Retrieves the field the criterion is for. |
java.lang.String |
getDescription()
Retrieves the description of the criterion. |
Operator |
getOperator()
Retrieves the operator type for the criterion. |
java.lang.Object |
getValue()
Retrieves value for the field the criterion is for. |
void |
setAttribute(java.lang.String attribute)
Sets the field for the criterion. |
void |
setDescription(java.lang.String description)
Sets the description of the criterion. |
void |
setOperator(Operator operator)
Sets the operator type for the criterion. |
void |
setValue(java.lang.Object value)
Sets value of the field in the criterion. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Criterion EMPTY_CRITERION
public static final java.lang.String OPERATOR_EQUAL
public static final java.lang.String OPERATOR_NOTEQUAL
public static final java.lang.String OPERATOR_LIKE
public static final java.lang.String OPERATOR_GREATTHAN
public static final java.lang.String OPERATOR_LESSTTHAN
public static final java.lang.String OPERATOR_GREATTHANOREQUAL
public static final java.lang.String OPERATOR_LESSTHANOREQUAL
public static final java.lang.String QUERY_NULL_VALUE
Constructor Detail |
---|
public Criterion()
public Criterion(java.lang.String attribute, Operator operator, java.lang.Object value)
attribute
- field of a work item to search onoperator
- operator typevalue
- value of the work item fieldpublic Criterion(java.lang.String attribute, java.lang.String description, Operator operator, java.lang.Object value)
Method Detail |
---|
public java.lang.String getAttribute()
public void setAttribute(java.lang.String attribute)
attribute
is missing, the criterion's field is unchanged.
attribute
- field of a work itempublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- of the criterionpublic Operator getOperator()
public void setOperator(Operator operator)
operator
- operator typepublic java.lang.Object getValue()
public void setValue(java.lang.Object value)
value
-
|
Oracle Fusion Middleware Java API Reference for Oracle Team Productivity Center 11g Release 2 (11.1.2.0.0) E17494-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |