|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.businessobjects.datasource.DataSourceSpecification
The DataSourceSpecification class provides information about the structure and contents of a universe (data source). This
class provides access to classes and hierarchies
in the universe. To construct a query, first, you must find these objects in the
DataSourceSpecification for a universe, and then obtain the keys for these
objects. You can then use the keys to include objects in your query.
Example: Obtaining a DataSourceSpecification for a universe.
It is assumed that you have obtained a QueryService instance called boQuerySrv.
See QueryService for information about
how to obtain a QueryService instance.
// Obtain a list of the universes, or data sources, available in the system.
DataSource[] boUniverses = boQuerySrv.getDataSourceList();
// Choose a universe to use for your query and obtain the UID for the universe. For this example, we will choose the first Universe in the list.
String boUniverseUID = boUniverses[0].getUID();
// Obtain the DataSourceSpecification for the chosen universe.
DataSourceSpecification boUniverseSpecification = boQuerySrv.getDataSource(boUniverseUID);
After you obtain a DataSourceSpecification instance for the universe you want to use
to build your query, you need to find all of the QueryResult, QueryCondition, QueryScope, and QuerySort objects
in the universe. See DataSourceObject for information
about how to find these objects in the universe.
DataSourceObject,
QuerySpecification,
QueryCondition,
QueryService,
Serialized Form| Constructor Summary | |
DataSourceSpecification()
Instantiate a new blank DataSourceSpecification object. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Internal Use Only. |
DataSourceClass[] |
getDataSourceClass()
Gets an array of DataSourceClass instances in the DataSourceSpecification. |
DataSourceClass |
getDataSourceClass(int i)
Gets the DataSourceClass instance located at array index i in the
array of DataSourceClass instances contained in this DataSourceSpecification. |
java.lang.String |
getDescription()
Gets the description of this DataSourceSpecification. |
static org.apache.axis.encoding.Deserializer |
getDeserializer(java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType)
Internal Use Only. |
Hierarchy[] |
getHierarchy()
Gets an array of Hierarchy instances in the DataSourceSpecification. |
Hierarchy |
getHierarchy(int i)
Gets the Hierarchy instance located at array index i in the
array of Hierarchy instances contained in this DataSourceSpecification. |
int |
getMaxInListNumber()
Gets the maximum number of values an In-list operator can support. |
int |
getMaxRetrievalTime()
Gets the maximum amount of time (in milliseconds) to wait for retrieving data. |
int |
getMaxRowsRetrieved()
Gets the maximum number of rows that can be retrieved for the data source. |
java.lang.String |
getName()
Gets the name of this DataSourceSpecification. |
static org.apache.axis.encoding.Serializer |
getSerializer(java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType)
Internal Use Only. |
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Internal Use Only. |
java.lang.String |
getUID()
Gets the UID of this DataSourceSpecification. |
int |
hashCode()
Internal Use Only. |
boolean |
isAdvancedConditionSupported()
Returns true if the DataSource object supports Advanced Condition. |
boolean |
isBothOperatorSupported()
Returns true if the DataSource object supports the use of the "Both" operator. |
boolean |
isCombinedQuerySupported()
Returns true if the DataSource object supports combined queries. |
boolean |
isConditionObjectValueSupported()
Returns true if the DataSource supports Object Value Condition. |
boolean |
isDuplicateRowSupported()
Returns true if the DataSource supports duplicate row. |
boolean |
isExceptOperatorSupported()
Returns true if the DataSource object supports the use of the "Except" operator. |
boolean |
isIsNullOperatorSupported()
Returns true if the DataSource object supports is null operator. |
boolean |
isMissingRowSupported()
Returns true if the DataSource supports missing row. |
boolean |
isNotIsNullOperatorSupported()
Returns true if the DataSource object supports is not null operator. |
boolean |
isRankConditionSupported()
Returns true if the DataSource object supports condition ranking. |
boolean |
isSubQuerySupported()
Returns true if the DataSource object supports sub queries. |
boolean |
isViewSQLSupported()
Returns true if the DataSource supports View SQL. |
void |
setAdvancedConditionSupported(boolean advancedConditionSupported)
Internal Use Only. |
void |
setBothOperatorSupported(boolean bothOperatorSupported)
Internal Use Only. |
void |
setCombinedQuerySupported(boolean combinedQuerySupported)
Internal Use Only. |
void |
setConditionObjectValueSupported(boolean conditionObjectValueSupported)
Internal Use Only. |
void |
setDataSourceClass(DataSourceClass[] dataSourceClass)
Internal Use Only. |
void |
setDataSourceClass(int i,
DataSourceClass value)
Internal Use Only. |
void |
setDescription(java.lang.String description)
Internal Use Only. |
void |
setDuplicateRowSupported(boolean duplicateRowSupported)
Internal Use Only. |
void |
setExceptOperatorSupported(boolean exceptOperatorSupported)
Internal Use Only. |
void |
setHierarchy(Hierarchy[] hierarchy)
Internal Use Only. |
void |
setHierarchy(int i,
Hierarchy value)
Internal Use Only. |
void |
setIsNullOperatorSupported(boolean isNullOperatorSupported)
Internal Use Only. |
void |
setMaxInListNumber(int maxInListNumber)
Internal Use Only. |
void |
setMaxRetrievalTime(int maxRetrievalTime)
Internal Use Only. |
void |
setMaxRowsRetrieved(int maxRowsRetrieved)
Internal Use Only. |
void |
setMissingRowSupported(boolean missingRowSupported)
Internal Use Only. |
void |
setName(java.lang.String name)
Internal Use Only. |
void |
setNotIsNullOperatorSupported(boolean notIsNullOperatorSupported)
Internal Use Only. |
void |
setRankConditionSupported(boolean rankConditionSupported)
Internal Use Only. |
void |
setSubQuerySupported(boolean subQuerySupported)
Internal Use Only. |
void |
setUID(java.lang.String UID)
Internal Use Only. |
void |
setViewSQLSupported(boolean viewSQLSupported)
Internal Use Only. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataSourceSpecification()
| Method Detail |
public DataSourceClass[] getDataSourceClass()
Gets an array of DataSourceClass instances in the DataSourceSpecification.
Each DataSourceClass instance contains zero or more DataSourceObject instances.
DataSourceClass instances in the DataSourceSpecificationpublic void setDataSourceClass(DataSourceClass[] dataSourceClass)
Internal Use Only.
public DataSourceClass getDataSourceClass(int i)
Gets the DataSourceClass instance located at array index i in the
array of DataSourceClass instances contained in this DataSourceSpecification.
i - the index of the DataSourceClass instance in the array
DataSourceClass instance located at array index i
public void setDataSourceClass(int i,
DataSourceClass value)
Internal Use Only.
public Hierarchy[] getHierarchy()
Gets an array of Hierarchy instances in the DataSourceSpecification.
Each Hierarchy instance contains zero or more DataSourceObject instances.
Hierarchy instances in the DataSourceSpecificationpublic void setHierarchy(Hierarchy[] hierarchy)
Internal Use Only.
public Hierarchy getHierarchy(int i)
Gets the Hierarchy instance located at array index i in the
array of Hierarchy instances contained in this DataSourceSpecification.
i - the index of the Hierarchy instance in the array
Hierarchy instance located at array index i
public void setHierarchy(int i,
Hierarchy value)
Internal Use Only.
public java.lang.String getDescription()
Gets the description of this DataSourceSpecification.
DataSourceSpecificationpublic void setDescription(java.lang.String description)
Internal Use Only.
public java.lang.String getUID()
Gets the UID of this DataSourceSpecification.
DataSourceSpecificationpublic void setUID(java.lang.String UID)
Internal Use Only.
public java.lang.String getName()
Gets the name of this DataSourceSpecification.
DataSourceSpecificationpublic void setName(java.lang.String name)
Internal Use Only.
public int getMaxRowsRetrieved()
Gets the maximum number of rows that can be retrieved for the data source.
public void setMaxRowsRetrieved(int maxRowsRetrieved)
Internal Use Only.
public int getMaxRetrievalTime()
Gets the maximum amount of time (in milliseconds) to wait for retrieving data.
public void setMaxRetrievalTime(int maxRetrievalTime)
Internal Use Only.
public int getMaxInListNumber()
Gets the maximum number of values an In-list operator can support. This is defined by the universe designer.
public void setMaxInListNumber(int maxInListNumber)
Internal Use Only.
public boolean isRankConditionSupported()
Returns true if the DataSource object supports condition ranking.
"true", if the DataSource object supports condition ranking, otherwise falsepublic void setRankConditionSupported(boolean rankConditionSupported)
Internal Use Only.
public boolean isSubQuerySupported()
Returns true if the DataSource object supports sub queries.
"true", if the DataSource object supports sub queries, otherwise falsepublic void setSubQuerySupported(boolean subQuerySupported)
Internal Use Only.
public boolean isCombinedQuerySupported()
Returns true if the DataSource object supports combined queries.
"true", if the DataSource object supports combined queries, otherwise falsepublic void setCombinedQuerySupported(boolean combinedQuerySupported)
Internal Use Only.
public boolean isBothOperatorSupported()
Returns true if the DataSource object supports the use of the "Both" operator.
"true", if the DataSource object supports the use of the "Both" operator, otherwise falsepublic void setBothOperatorSupported(boolean bothOperatorSupported)
Internal Use Only.
public boolean isExceptOperatorSupported()
Returns true if the DataSource object supports the use of the "Except" operator.
"true", if the DataSource object supports the use of the "Except" operator, otherwise falsepublic void setExceptOperatorSupported(boolean exceptOperatorSupported)
Internal Use Only.
public boolean isAdvancedConditionSupported()
Returns true if the DataSource object supports Advanced Condition.
true if the DataSource object supports Advanced Condition, otherwise falsepublic void setAdvancedConditionSupported(boolean advancedConditionSupported)
Internal Use Only.
public boolean isConditionObjectValueSupported()
Returns true if the DataSource supports Object Value Condition.
true if the DataSource supports Object Value Condition, otherwise falsepublic void setConditionObjectValueSupported(boolean conditionObjectValueSupported)
Internal Use Only.
public boolean isDuplicateRowSupported()
Returns true if the DataSource supports duplicate row.
true if the DataSource supports duplicate row, otherwise falsepublic void setDuplicateRowSupported(boolean duplicateRowSupported)
Internal Use Only.
public boolean isIsNullOperatorSupported()
Returns true if the DataSource object supports is null operator.
true if the DataSource supports is null operator, otherwise falsepublic void setIsNullOperatorSupported(boolean isNullOperatorSupported)
Internal Use Only.
public boolean isNotIsNullOperatorSupported()
Returns true if the DataSource object supports is not null operator.
true if the DataSource supports is not null operator, otherwise falsepublic void setNotIsNullOperatorSupported(boolean notIsNullOperatorSupported)
Internal Use Only.
public boolean isViewSQLSupported()
Returns true if the DataSource supports View SQL.
true if the DataSource supports View SQL, otherwise falsepublic void setViewSQLSupported(boolean viewSQLSupported)
Internal Use Only.
public boolean isMissingRowSupported()
Returns true if the DataSource supports missing row.
true if the DataSource supports missing row, otherwise falsepublic void setMissingRowSupported(boolean missingRowSupported)
Internal Use Only.
public boolean equals(java.lang.Object obj)
Internal Use Only.
public int hashCode()
Internal Use Only.
public static org.apache.axis.description.TypeDesc getTypeDesc()
Internal Use Only.
public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType)
Internal Use Only.
public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType)
Internal Use Only.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||