com.businessobjects.rebean.wi
Interface DataSourceObjects


public interface DataSourceObjects

Warning: This interface is no longer functional from the SAP BusinessObjects 4.0 release onwards.

DataSourceObjects interface is a collection of DataSourceObject objects.

See Also:
DataSource.getClasses(), DataSource.getHierarchies()

Method Summary
 DataSourceObject getChild(java.lang.String dsoID)
          Gets a datasource object by unique identifier.
 DataSourceObject getChildAt(int index)
          Returns the data source object at the specified position in the list.
 DataSourceObject getChildByName(java.lang.String name)
          Gets the first datasource object whose name is name.
 int getChildCount()
          Gets the amount of DataSourceObjects.
 

Method Detail

getChildCount

int getChildCount()
Gets the amount of DataSourceObjects.

Returns:
the amount of DataSourceObjects

getChildAt

DataSourceObject getChildAt(int index)
Returns the data source object at the specified position in the list.

Parameters:
index - the index of the data source object to return (0 based)
Throws:
java.lang.ArrayIndexOutOfBoundsException - if index is out of range (index < 0 || index >= getChildCount())

getChild

DataSourceObject getChild(java.lang.String dsoID)
Gets a datasource object by unique identifier. This method recursively searches all classes or hierarchies; the requested object does not have to be in the first level.

Parameters:
dsoID - the ID of the object to get
Returns:
the DataSourceObject with ID dsoID, or null when there is no DataSourceObject in the collection with ID dsoID.
Throws:
java.lang.NullPointerException - when dsoID is null
See Also:
DataSourceObject.getID()

getChildByName

DataSourceObject getChildByName(java.lang.String name)
Gets the first datasource object whose name is name. This method recursively searches all classes or hierarchies.

Parameters:
name - the name to look for
Returns:
the DataSourceObject with name name, or null when there is no DataSourceObject in the collection with name name.
Throws:
java.lang.NullPointerException - when name is null
See Also:
DataSourceObject.getName()