Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.jbo
Interface AttributeList

All Known Subinterfaces:
Entity, Row
All Known Implementing Classes:
AttributeListImpl, EntityImpl, Key, NameValuePairs, RowImpl, ViewCriteria.NestedViewCriteriaRow, ViewCriteriaRow, ViewCriteriaRowImpl, ViewRowImpl

public interface AttributeList

Provides access to a list of attributes.


Field Summary
static java.lang.Class CLASS_INSTANCE
           
 
Method Summary
 java.lang.Object getAttribute(int index)
          Selects the attribute at the given index.
 java.lang.Object getAttribute(java.lang.String name)
          Selects the attribute with the given name.
 int getAttributeCount()
          Counts the number of attributes.
 int getAttributeIndexOf(java.lang.String name)
          Finds the index (0-based) of the named attribute.
 java.lang.String[] getAttributeNames()
          Returns an array of attribute names in this list.
 java.lang.Object[] getAttributeValues()
          Returns an array of attribute values in this list.
 void setAttribute(int index, java.lang.Object value)
          Sets the value of an attribute.
 void setAttribute(java.lang.String name, java.lang.Object value)
          Set the value for the named attribute.
 

Field Detail

CLASS_INSTANCE

static final java.lang.Class CLASS_INSTANCE
Method Detail

getAttribute

java.lang.Object getAttribute(int index)
Selects the attribute at the given index.

Parameters:
index - an integer in the range 0 to getAttributeCount() - 1.
Returns:
the attribute associated with index, or null if index out of range

getAttribute

java.lang.Object getAttribute(java.lang.String name)
Selects the attribute with the given name.

Parameters:
name - an attribute name.
Returns:
the attribute associated with name, or null if name not found

setAttribute

void setAttribute(int index,
                  java.lang.Object value)
Sets the value of an attribute.

Parameters:
index - the attribute's index.
value - the value to be assigned to the attribute.

setAttribute

void setAttribute(java.lang.String name,
                  java.lang.Object value)
Set the value for the named attribute.

Parameters:
name - the attribute's name.
value - the value to be assigned to the attribute.
Throws:
JboException, - a runtime exception, i if name is unknown.

getAttributeCount

int getAttributeCount()
Counts the number of attributes.

Returns:
the number of attributes.

getAttributeIndexOf

int getAttributeIndexOf(java.lang.String name)
Finds the index (0-based) of the named attribute.

Parameters:
name - the attribute's name.
Returns:
an integer in the range 0 to getAttributeCount() - 1. If the named attribute is not found, it returns -1.

getAttributeNames

java.lang.String[] getAttributeNames()
Returns an array of attribute names in this list.

Returns:
an array of attribute names.

getAttributeValues

java.lang.Object[] getAttributeValues()
Returns an array of attribute values in this list.

Returns:
an array of attribute values.

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.