|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Hierarchy
The Hierarchy array in a DataSourceSpecification instance contains
objects in the universe that can be used as query scope objects.
Example: Finding query scope objects in the universe
LinkedList scopeKeys = new LinkedList();
for (int k=0; k<boHierarchy.length; k++)
{
DataSourceObject[] boScopeObjects = boHierarchy[k].getDataSourceObjectArray();
for (int m=0; m<boScopeObjects.length; m++)
{
scopeKeys.add(boScopeObjects[m].getKey());
}
}
Once you have obtained the keys for the query scope objects in a DataSourceSpecification
you then add the keys for the objects that you want to include in your query to QueryObject instances.
These QueryObject instances are then added to a Query instance using the
Query.setQueryScope method.
DataSourceObject,
DataSourceSpecification,
QueryObject| Nested Class Summary | |
|---|---|
static class |
Hierarchy.Factory
A class with methods for creating instances of the Hierarchy type. |
| Field Summary | |
|---|---|
static org.apache.xmlbeans.SchemaType |
type
Internal Use Only. |
| Method Summary | |
|---|---|
DataSourceObject |
addNewDataSourceObject()
Internal Use Only. |
DataSourceObject[] |
getDataSourceObjectArray()
Gets the array of DataSourceObject instances contained in this Hierarchy. |
DataSourceObject |
getDataSourceObjectArray(int i)
Gets the DataSourceObject instance located at index iof the
DataSourceObject array contained in this Hierarchy. |
java.lang.String |
getDescription()
Gets the description for this Hierarchy instance. |
java.lang.String |
getKey()
Gets the key of this Hierarchy instance. |
java.lang.String |
getName()
Gets the name of this Hierarchy instance. |
DataSourceObject |
insertNewDataSourceObject(int i)
Internal Use Only. |
void |
removeDataSourceObject(int i)
Internal Use Only. |
void |
setDataSourceObjectArray(DataSourceObject[] dataSourceObjectArray)
Internal Use Only. |
void |
setDataSourceObjectArray(int i,
DataSourceObject dataSourceObject)
Internal Use Only. |
void |
setDescription(java.lang.String description)
Internal Use Only. |
void |
setKey(java.lang.String key)
Internal Use Only. |
void |
setName(java.lang.String name)
Internal Use Only. |
int |
sizeOfDataSourceObjectArray()
Returns the number of DataSourceObject element. |
org.apache.xmlbeans.XmlString |
xgetDescription()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetKey()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetName()
Internal Use Only. |
void |
xsetDescription(org.apache.xmlbeans.XmlString description)
Internal Use Only. |
void |
xsetKey(org.apache.xmlbeans.XmlString key)
Internal Use Only. |
void |
xsetName(org.apache.xmlbeans.XmlString name)
Internal Use Only. |
| Field Detail |
|---|
static final org.apache.xmlbeans.SchemaType type
Internal Use Only.
| Method Detail |
|---|
DataSourceObject[] getDataSourceObjectArray()
Gets the array of DataSourceObject instances contained in this Hierarchy. These
DataSourceObject instances can be used to define the scope of your query.
DataSourceObject instances contained in this HierarchyDataSourceObject getDataSourceObjectArray(int i)
Gets the DataSourceObject instance located at index iof the
DataSourceObject array contained in this Hierarchy. This
DataSourceObject instance can be used to define the scope of your query.
i - the index of the DataSourceObject in the array.
DataSourceObject instance located at index iof the
DataSourceObject array contained in this Hierarchy.int sizeOfDataSourceObjectArray()
void setDataSourceObjectArray(DataSourceObject[] dataSourceObjectArray)
Internal Use Only.
void setDataSourceObjectArray(int i,
DataSourceObject dataSourceObject)
Internal Use Only.
DataSourceObject insertNewDataSourceObject(int i)
Internal Use Only.
DataSourceObject addNewDataSourceObject()
Internal Use Only.
void removeDataSourceObject(int i)
Internal Use Only.
java.lang.String getKey()
Gets the key of this Hierarchy instance.
Hierarchy instance.org.apache.xmlbeans.XmlString xgetKey()
Internal Use Only.
void setKey(java.lang.String key)
Internal Use Only.
void xsetKey(org.apache.xmlbeans.XmlString key)
Internal Use Only.
java.lang.String getName()
Gets the name of this Hierarchy instance.
Hierarchy instanceorg.apache.xmlbeans.XmlString xgetName()
Internal Use Only.
void setName(java.lang.String name)
Internal Use Only.
void xsetName(org.apache.xmlbeans.XmlString name)
Internal Use Only.
java.lang.String getDescription()
Gets the description for this Hierarchy instance.
Hierarchy instanceorg.apache.xmlbeans.XmlString xgetDescription()
Internal Use Only.
void setDescription(java.lang.String description)
Internal Use Only.
void xsetDescription(org.apache.xmlbeans.XmlString description)
Internal Use Only.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||