Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.3.0)

E17483-04


oracle.binding.meta.criteria
Interface ItemValue


public interface ItemValue

Method Summary
 Criteria getNestedCriteria()
          Returns the nested criteria that is used as the right operand of this criteria item.
 java.lang.String getOperator()
          Returns the operator to be executed on the operands, such as EQUALS, EXISTS.
 java.lang.Object getValue()
          Returns the value if it is an expression or literal.
 void setNestedCriteria(Criteria nestedCriteria)
          Sets the nested criteria of this criteria item.
 void setOperator(java.lang.String operator)
          Sets the operator of this criteria item.
 void setValue(java.lang.Object value)
          Sets the value of this criteria item.

 

Method Detail

setOperator

void setOperator(java.lang.String operator)
                 throws java.lang.IllegalArgumentException
Sets the operator of this criteria item.
Parameters:
operator - The name of the operator of the criteria item. The operator must be one of the operators from the getSupportedOperators method if this is an attribute item, or one from the getSupportedSubselectOperators if this is a subselect item.
Throws:
java.lang.IllegalArgumentException - If the operator provided is not a valid operator.

setValue

void setValue(java.lang.Object value)
              throws java.lang.IllegalArgumentException
Sets the value of this criteria item. This method is used for setting the value of an attribute item. If a nested criteria was previously set, calling this method with a non-null value will unset the nested criteria and converted this item to an attribute item.
Parameters:
value - The right operand of the criteria item. It can be a String containing a literal value, or a String containing an expression.
Throws:
java.lang.IllegalArgumentException - if the right operand provided is not valid.
See Also:
setNestedCriteria(oracle.binding.meta.criteria.Criteria)

setNestedCriteria

void setNestedCriteria(Criteria nestedCriteria)
                       throws java.lang.IllegalArgumentException
Sets the nested criteria of this criteria item. This method is used for setting the value of a subselect item. If a value was previously set, calling this method with a non-null value will unset the right operand and converted this item to a subselect item.
Parameters:
nestedCriteria - The nested criteria to be used as the value of this subselect item.
Throws:
java.lang.IllegalArgumentException - If the criteria provided cannot be used as a valid nested critiera.
See Also:
setValue(java.lang.Object)

getValue

java.lang.Object getValue()
Returns the value if it is an expression or literal. If the value is a nested criteria, this method would return null.
Returns:
A String containing the value of this criteria item, or null if the right operand is an nested criteria.
See Also:
getNestedCriteria()

getNestedCriteria

Criteria getNestedCriteria()
Returns the nested criteria that is used as the right operand of this criteria item. This method should return null if the right operand is not a nested criteria.
Returns:
The definition of the nested criteria.
See Also:
getValue()

getOperator

java.lang.String getOperator()
Returns the operator to be executed on the operands, such as EQUALS, EXISTS. It can be the name of a custom operator defined in the associated attribute, or any operator that the datacontrol understands.
Returns:
The name of the operator to be executed on the operands.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.3.0)

E17483-04


Copyright © 1997, 2012, Oracle. All rights reserved.