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

E17483-02

oracle.binding.meta.criteria
Interface CriteriaRow

All Superinterfaces:
Definition, NamedDefinition
All Known Subinterfaces:
NestedCriteriaRow, SimpleRow

public interface CriteriaRow
extends NamedDefinition

A criteria definition is made up of a list of rows that implements this interface. A criteria row can either be a nested criteria, or a simple row that contains one or more criteria items.


Nested Class Summary
static class CriteriaRow.RowType
           
 
Field Summary
static java.lang.String PROPERTY_CASE_SENSITIVE
          Standard properties for a view criteria row.
 
Fields inherited from interface oracle.binding.meta.Definition
TYPE_ACCESSOR, TYPE_ATTRIBUTE, TYPE_CRITERIA, TYPE_CRITERIA_ITEM, TYPE_CRITERIA_OPERATOR, TYPE_CRITERIA_ROW, TYPE_DATACONTROL, TYPE_DEFINITION, TYPE_DEFINITIONCONTEXT, TYPE_NAMED, TYPE_OPERATION, TYPE_OPERATIONRETURN, TYPE_PARAMETER, TYPE_STRUCTURE, TYPE_VARIABLE
 
Method Summary
 Criteria.Conjunction getConjunction()
          The conjunction to be applied to this row or nested view criteria.
 java.util.List getPropertyListOfValues(java.lang.String propertyName)
          Returns a list of all valid values that is allowed in the given property.
 CriteriaRow.RowType getRowType()
          Whether this CriteriaRow is a regular row or a nested view criteria.
 void setConjunction(Criteria.Conjunction conjunction)
          Sets the conjunction of this row.
 void setProperty(java.lang.String name, java.lang.String value)
          Sets the value of a row property.
 void validate()
          Validates this criteria row.
 
Methods inherited from interface oracle.binding.meta.NamedDefinition
getDefinitionParent, getFullName, getName, getProperties, getProperty
 
Methods inherited from interface oracle.binding.meta.Definition
getDefinitionType
 

Field Detail

PROPERTY_CASE_SENSITIVE

static final java.lang.String PROPERTY_CASE_SENSITIVE
Standard properties for a view criteria row. SimpleRow definitions can optionally provide values for these properties, and are allowed to provide other custom properties.

See Also:
Constant Field Values
Method Detail

getConjunction

Criteria.Conjunction getConjunction()
The conjunction to be applied to this row or nested view criteria. The default is OR.

Returns:
Conjunction represented by the enum type Conjunction defined in the Criteria iterface.

setConjunction

void setConjunction(Criteria.Conjunction conjunction)
Sets the conjunction of this row. The conjunction will be applied to connect this row with the previous row in the criteria. If a row is created but its conjunction is not set, the default row-level conjunction for the datacontrol is assumed.

Parameters:
conjunction - The conjunction of this row.

getRowType

CriteriaRow.RowType getRowType()
Whether this CriteriaRow is a regular row or a nested view criteria.

Returns:
An RowType indicating the type of this CriteriaRow.

getPropertyListOfValues

java.util.List getPropertyListOfValues(java.lang.String propertyName)
Returns a list of all valid values that is allowed in the given property.
If the given property allows any String value, this method should return null.

Parameters:
propertyName - The name of the property whose list of valid values should be returned.
Returns:
A List of String containing the valid values for the given property. Null if there is no list of valid values for the property.

setProperty

void setProperty(java.lang.String name,
                 java.lang.String value)
Sets the value of a row property.

Parameters:
name - name of the property to be set.
value - value of the property.

validate

void validate()
              throws java.lang.IllegalArgumentException
Validates this criteria row. This is for use by design tools to make sure that the newly created row is valid.

Throws:
java.lang.IllegalArgumentException

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

E17483-02

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