|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DataProviderInformation
Provides information about the data provider associated with a query or document.
A DataProviderInformation instance can be retrieved from the QueryService
in two ways:
QueryService.createDataProvider
method, a DataProviderInformation instance for the query (or document) is returned by the method.DataProviderInformation instances for an existing document. To do this,
you pass the document reference to the QueryService.getDataProviderList
method. You can also specify if you want the QuerySpecification returned.
If you have constructed a new query and created the query using the QueryService.createDataProvider
method, your next step may be to use the ReportEngine service to display the resulting document. To do this, you first obtain the
document reference from the DataProviderInformation instance by calling the getDocumentReference method. You can
then use the document reference with the ReportEngine service. (See ReportEngine for
further information about the ReportEngine service.)
Example: Get the data source name of the DataProviderInformation.
ReturnProperties boRetProp = ReturnProperties.Factory.newInstance();
boRetProp.setIncludeQuerySpecification(false);
DataProviderInformation boDataProviderInfo = boQuerySrv.createDataProvider(boUniverseUID, boQuerySpec, boRetProp);
String boQueryDocRef = boDataProviderInfo.getDocumentReference();
DataProviderInformation[] dataproviders = boQuerySrv.getDataProviderList(boQueryDocRef, false);
for(int i=0;i< dataproviders.length;i++)
{
DataProviderInformation dataprovider = dataproviders[i];
String DPname = dataprovider.getName();
int DProwcount = dataprovider.getRowCount();
String source = dataprovider.getDataSourceUID();
}
| Nested Class Summary | |
|---|---|
static class |
DataProviderInformation.Factory
A class with methods for creating instances of the DataProviderInformation type. |
| Field Summary | |
|---|---|
static org.apache.xmlbeans.SchemaType |
type
Internal Use Only. |
| Method Summary | |
|---|---|
DataSourceParameterValue |
addNewDataSourceParameterValues()
Internal Use Only. |
QuerySpecification |
addNewQuerySpecification()
Internal Use Only. |
DataSourceParameterValue[] |
getDataSourceParameterValuesArray()
Gets the array of all DataSourceParameterValues elements. |
DataSourceParameterValue |
getDataSourceParameterValuesArray(int i)
Gets the DataSourceParameterValues element at the specified index position. |
java.lang.String |
getDataSourceUID()
Gets the name of the data source this data provider is built upon. |
java.lang.String |
getDocumentReference()
Gets the document reference for the document (or query) associated with this DataProviderInformation instance. |
int |
getDuration()
Gets the estimated time required to retrieve the data for this data provider. |
int |
getFlowCount()
Gets the number of flux (record sets) contained in the query. |
java.lang.String |
getName()
Gets the name for this DataProviderInformation instance. |
boolean |
getPartial()
Returns true if the DataProviderInformation instance only contains
partial data, otherwise false. |
QuerySpecification |
getQuerySpecification()
Gets the QuerySpecification associated with this DataProviderInformation
instance. |
boolean |
getRefreshable()
Returns true if this DataProviderInformation can be Refreshable. |
java.util.Calendar |
getRefreshDate()
Gets the date of the last refresh of this DataProviderInformation instance. |
int |
getRowCount()
Gets the number of rows of data contained in the DataProviderInformation instance. |
boolean |
getSampledData()
Returns true if this DataProviderInformation has Sampled Data. |
java.lang.String |
getUID()
Gets the unique identifier (UID) for this DataProviderInformation instance. |
DataSourceParameterValue |
insertNewDataSourceParameterValues(int i)
Internal Use Only. |
boolean |
isNilDataSourceParameterValuesArray(int i)
Tests for nil ith DataSourceParameterValues element. |
boolean |
isSetQuerySpecification()
Checks if the QuerySpecification element is set. |
void |
removeDataSourceParameterValues(int i)
Internal Use Only. |
void |
setDataSourceParameterValuesArray(DataSourceParameterValue[] dataSourceParameterValuesArray)
Internal Use Only. |
void |
setDataSourceParameterValuesArray(int i,
DataSourceParameterValue dataSourceParameterValues)
Internal Use Only. |
void |
setDataSourceUID(java.lang.String dataSourceUID)
Internal Use Only. |
void |
setDocumentReference(java.lang.String documentReference)
Internal Use Only. |
void |
setDuration(int duration)
Internal Use Only. |
void |
setFlowCount(int flowCount)
Internal Use Only. |
void |
setName(java.lang.String name)
Internal Use Only. |
void |
setNilDataSourceParameterValuesArray(int i)
Internal Use Only. |
void |
setPartial(boolean partial)
Internal Use Only. |
void |
setQuerySpecification(QuerySpecification querySpecification)
Internal Use Only. |
void |
setRefreshable(boolean refreshable)
Internal Use Only. |
void |
setRefreshDate(java.util.Calendar refreshDate)
Internal Use Only. |
void |
setRowCount(int rowCount)
Internal Use Only. |
void |
setSampledData(boolean sampledData)
Internal Use Only. |
void |
setUID(java.lang.String uid)
Internal Use Only. |
int |
sizeOfDataSourceParameterValuesArray()
Returns number of DataSourceParameterValues element. |
void |
unsetQuerySpecification()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetDataSourceUID()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetDocumentReference()
Internal Use Only. |
org.apache.xmlbeans.XmlInt |
xgetDuration()
Internal Use Only. |
org.apache.xmlbeans.XmlInt |
xgetFlowCount()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetName()
Internal Use Only. |
org.apache.xmlbeans.XmlBoolean |
xgetPartial()
Internal Use Only. |
org.apache.xmlbeans.XmlBoolean |
xgetRefreshable()
Internal Use Only. |
org.apache.xmlbeans.XmlDateTime |
xgetRefreshDate()
Internal Use Only. |
org.apache.xmlbeans.XmlInt |
xgetRowCount()
Internal Use Only. |
org.apache.xmlbeans.XmlBoolean |
xgetSampledData()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetUID()
Internal Use Only. |
void |
xsetDataSourceUID(org.apache.xmlbeans.XmlString dataSourceUID)
Internal Use Only. |
void |
xsetDocumentReference(org.apache.xmlbeans.XmlString documentReference)
Internal Use Only. |
void |
xsetDuration(org.apache.xmlbeans.XmlInt duration)
Internal Use Only. |
void |
xsetFlowCount(org.apache.xmlbeans.XmlInt flowCount)
Internal Use Only. |
void |
xsetName(org.apache.xmlbeans.XmlString name)
Internal Use Only. |
void |
xsetPartial(org.apache.xmlbeans.XmlBoolean partial)
Internal Use Only. |
void |
xsetRefreshable(org.apache.xmlbeans.XmlBoolean refreshable)
Internal Use Only. |
void |
xsetRefreshDate(org.apache.xmlbeans.XmlDateTime refreshDate)
Internal Use Only. |
void |
xsetRowCount(org.apache.xmlbeans.XmlInt rowCount)
Internal Use Only. |
void |
xsetSampledData(org.apache.xmlbeans.XmlBoolean sampledData)
Internal Use Only. |
void |
xsetUID(org.apache.xmlbeans.XmlString uid)
Internal Use Only. |
| Field Detail |
|---|
static final org.apache.xmlbeans.SchemaType type
Internal Use Only.
| Method Detail |
|---|
java.lang.String getUID()
Gets the unique identifier (UID) for this DataProviderInformation instance.
DataProviderInformation instance.org.apache.xmlbeans.XmlString xgetUID()
Internal Use Only.
void setUID(java.lang.String uid)
Internal Use Only.
void xsetUID(org.apache.xmlbeans.XmlString uid)
Internal Use Only.
java.lang.String getName()
Gets the name for this DataProviderInformation instance.
DataProviderInformation instance.org.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.
QuerySpecification getQuerySpecification()
Gets the QuerySpecification associated with this DataProviderInformation
instance.
QuerySpecification associated with this DataProviderInformation
instance.boolean isSetQuerySpecification()
true if the QuerySpecification element is set, otherwise false.void setQuerySpecification(QuerySpecification querySpecification)
Internal Use Only.
QuerySpecification addNewQuerySpecification()
Internal Use Only.
void unsetQuerySpecification()
Internal Use Only.
DataSourceParameterValue[] getDataSourceParameterValuesArray()
DataSourceParameterValue getDataSourceParameterValuesArray(int i)
i - the index of the DataSourceParameterValues element.
boolean isNilDataSourceParameterValuesArray(int i)
i - the index of the DataSourceParameterValues element.
true if the DataSourceParameterValues is nil, otherwise false.int sizeOfDataSourceParameterValuesArray()
void setDataSourceParameterValuesArray(DataSourceParameterValue[] dataSourceParameterValuesArray)
void setDataSourceParameterValuesArray(int i,
DataSourceParameterValue dataSourceParameterValues)
void setNilDataSourceParameterValuesArray(int i)
DataSourceParameterValue insertNewDataSourceParameterValues(int i)
DataSourceParameterValue addNewDataSourceParameterValues()
void removeDataSourceParameterValues(int i)
int getDuration()
Gets the estimated time required to retrieve the data for this data provider.
org.apache.xmlbeans.XmlInt xgetDuration()
Internal Use Only.
void setDuration(int duration)
Internal Use Only.
void xsetDuration(org.apache.xmlbeans.XmlInt duration)
Internal Use Only.
int getRowCount()
Gets the number of rows of data contained in the DataProviderInformation instance.
DataProviderInformation instance.org.apache.xmlbeans.XmlInt xgetRowCount()
Internal Use Only.
void setRowCount(int rowCount)
Internal Use Only.
void xsetRowCount(org.apache.xmlbeans.XmlInt rowCount)
Internal Use Only.
java.util.Calendar getRefreshDate()
Gets the date of the last refresh of this DataProviderInformation instance. That is,
the last time data was fetched from the database.
DataProviderInformation instance.org.apache.xmlbeans.XmlDateTime xgetRefreshDate()
Internal Use Only.
void setRefreshDate(java.util.Calendar refreshDate)
Internal Use Only.
void xsetRefreshDate(org.apache.xmlbeans.XmlDateTime refreshDate)
Internal Use Only.
boolean getPartial()
Returns true if the DataProviderInformation instance only contains
partial data, otherwise false.
true if the DataProviderInformation instance only contains
partial data, otherwise false.org.apache.xmlbeans.XmlBoolean xgetPartial()
Internal Use Only.
void setPartial(boolean partial)
Internal Use Only.
void xsetPartial(org.apache.xmlbeans.XmlBoolean partial)
Internal Use Only.
int getFlowCount()
Gets the number of flux (record sets) contained in the query.
org.apache.xmlbeans.XmlInt xgetFlowCount()
Internal Use Only.
void setFlowCount(int flowCount)
Internal Use Only.
void xsetFlowCount(org.apache.xmlbeans.XmlInt flowCount)
Internal Use Only.
java.lang.String getDataSourceUID()
Gets the name of the data source this data provider is built upon.
org.apache.xmlbeans.XmlString xgetDataSourceUID()
Internal Use Only.
void setDataSourceUID(java.lang.String dataSourceUID)
Internal Use Only.
void xsetDataSourceUID(org.apache.xmlbeans.XmlString dataSourceUID)
Internal Use Only.
java.lang.String getDocumentReference()
Gets the document reference for the document (or query) associated with this
DataProviderInformation instance.
DataProviderInformation instance.org.apache.xmlbeans.XmlString xgetDocumentReference()
Internal Use Only.
void setDocumentReference(java.lang.String documentReference)
Internal Use Only.
void xsetDocumentReference(org.apache.xmlbeans.XmlString documentReference)
Internal Use Only.
boolean getSampledData()
Returns true if this DataProviderInformation has Sampled Data.
"true", if this DataProviderInformation has Sampled Data, otherwise false.org.apache.xmlbeans.XmlBoolean xgetSampledData()
Internal Use Only.
void setSampledData(boolean sampledData)
Internal Use Only.
void xsetSampledData(org.apache.xmlbeans.XmlBoolean sampledData)
Internal Use Only.
boolean getRefreshable()
Returns true if this DataProviderInformation can be Refreshable.
"true", if this DataProviderInformation can be Refreshable, otherwise false.org.apache.xmlbeans.XmlBoolean xgetRefreshable()
Internal Use Only.
void setRefreshable(boolean refreshable)
Internal Use Only.
void xsetRefreshable(org.apache.xmlbeans.XmlBoolean refreshable)
Internal Use Only.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||