Business Components

oracle.jbo
Class ViewCriteriaRow

java.lang.Object
  |
  +--oracle.jbo.ViewCriteriaRow

public class ViewCriteriaRow
extends java.lang.Object
implements AttributeList

An array containing criteria for the individual attributes of a View Object's WHERE clause.

For an example of a program that uses ViewCriteriaRow methods, see ViewCriteria.

Since:
JDeveloper 3.0

Constructor Summary
ViewCriteriaRow(ViewCriteria viewCriteria, java.lang.Object[] data)
          Creates a new view criteria row.
 
Method Summary
 java.lang.Object getAttribute(int index)
          Gets the criterion for a given column.
 java.lang.Object getAttribute(java.lang.String name)
          Gets the criterion for a given column.
 int getAttributeCount()
          Counts the attributes in the row.
 int getAttributeIndexOf(java.lang.String name)
          Gets the column index associated with a given attribute name.
 void setAttribute(int index, java.lang.Object value)
          Sets the criterion for a given column.
 void setAttribute(java.lang.String name, java.lang.Object value)
          Sets the criterion for a given column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewCriteriaRow

public ViewCriteriaRow(ViewCriteria viewCriteria,
                       java.lang.Object[] data)
Creates a new view criteria row.
Parameters:
viewCriteria - the ViewCriteria that is to contain the ViewCriteriaRow
data - an array of objects to be interpreted as statements in QBE logic.
Method Detail

getAttribute

public java.lang.Object getAttribute(int index)
Gets the criterion for a given column.

Specified by:
getAttribute in interface AttributeList
Parameters:
index - the column's index.
Returns:
the column's criterion.
Throws:
oracle.jbo.CSException - a runtime exception, if the index is out of range.

getAttribute

public final java.lang.Object getAttribute(java.lang.String name)
Gets the criterion for a given column.
Specified by:
getAttribute in interface AttributeList
Parameters:
name - the column's name.
Returns:
the column's criterion.
Throws:
oracle.jbo.CSException, - a runtime exception, if the name is not recognized.

setAttribute

public void setAttribute(int index,
                         java.lang.Object value)
Sets the criterion for a given column.
Specified by:
setAttribute in interface AttributeList
Parameters:
name - the column's index.
value - a new value for the column.
Throws:
oracle.jbo.CSException, - a runtime exception, if the index is out of range.

setAttribute

public final void setAttribute(java.lang.String name,
                               java.lang.Object value)
Sets the criterion for a given column.
Specified by:
setAttribute in interface AttributeList
Parameters:
name - the column's name.
value - a value for the column, to be interpreted as a statement in QBE logic..
Throws:
oracle.jbo.CSException, - a runtime exception, if the name is not recognized.

getAttributeCount

public int getAttributeCount()
Counts the attributes in the row.
Specified by:
getAttributeCount in interface AttributeList
Returns:
the number of attributes.

getAttributeIndexOf

public int getAttributeIndexOf(java.lang.String name)
Gets the column index associated with a given attribute name.
Specified by:
getAttributeIndexOf in interface AttributeList
Parameters:
name - the column name.
Returns:
the column index, where the leftmost column has index zero.

Business Components