Oracle Fusion Middleware Java API Reference for Oracle Team Productivity Center
11g Release 1 (11.1.1.7.0)
E14128-06

oracle.alm.connector.data
Class Criterion

java.lang.Object
  extended by oracle.alm.connector.data.Criterion

public class Criterion
extends java.lang.Object

The Criterion represents a single query row or parameter displayed on a connector query form. This query data is passed in from Oracle Team Productivity Center (OTPC) client to the connector by OTPC connector framework as the result of a search action performed onn the query form. Connector writer can use this class to configure and execute the query against the backend repository.

Since:
11.1.1.1.0
See Also:
WorkItemQuery

Field Summary
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.
 
Method Summary
 java.lang.String getAttribute()
          Retrieves the field the criterion is for.
 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 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

OPERATOR_EQUAL

public static final java.lang.String OPERATOR_EQUAL
See Also:
Constant Field Values

OPERATOR_NOTEQUAL

public static final java.lang.String OPERATOR_NOTEQUAL
See Also:
Constant Field Values

OPERATOR_LIKE

public static final java.lang.String OPERATOR_LIKE
See Also:
Constant Field Values

OPERATOR_GREATTHAN

public static final java.lang.String OPERATOR_GREATTHAN
See Also:
Constant Field Values

OPERATOR_LESSTTHAN

public static final java.lang.String OPERATOR_LESSTTHAN
See Also:
Constant Field Values

OPERATOR_GREATTHANOREQUAL

public static final java.lang.String OPERATOR_GREATTHANOREQUAL
See Also:
Constant Field Values

OPERATOR_LESSTHANOREQUAL

public static final java.lang.String OPERATOR_LESSTHANOREQUAL
See Also:
Constant Field Values

QUERY_NULL_VALUE

public static final java.lang.String QUERY_NULL_VALUE
See Also:
Constant Field Values
Constructor Detail

Criterion

public Criterion()

Criterion

public Criterion(java.lang.String attribute,
                 Operator operator,
                 java.lang.Object value)
Constructs a criterion for specified field, operator, and value.

Parameters:
attribute - field of a work item to search on
operator - operator type
value - value of the work item field
Method Detail

getAttribute

public java.lang.String getAttribute()
Retrieves the field the criterion is for.

Returns:
the name of the field

setAttribute

public void setAttribute(java.lang.String attribute)
Sets the field for the criterion. If the attribute is missing, the criterion's field is unchanged.

Parameters:
attribute - field of a work item

getOperator

public Operator getOperator()
Retrieves the operator type for the criterion.

Returns:
the operator type for the criterion.

setOperator

public void setOperator(Operator operator)
Sets the operator type for the criterion.

Parameters:
operator - operator type

getValue

public java.lang.Object getValue()
Retrieves value for the field the criterion is for.

Returns:
criterion value for the field

setValue

public void setValue(java.lang.Object value)
Sets value of the field in the criterion.

Parameters:
value -

Oracle Fusion Middleware Java API Reference for Oracle Team Productivity Center
11g Release 1 (11.1.1.7.0)
E14128-06

Copyright © 1999, 2013, Oracle. All rights reserved.