|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Query
Warning: This interface is no longer functional from the SAP BusinessObjects 4.0 release onwards.
Query
interface is a representation of a query.
DataProvider
Method Summary | |
---|---|
void |
addResultObject(DataSourceObject obj)
Adds an object to the Query . |
boolean |
containsUnresolvableResultsObjects()
Returns true, when the Query contains object that no longer exist in the DataSource. |
ConditionContainer |
copyCondition(ConditionContainer cont)
Makes a copy of cont and makes that this query's condition
container. |
ConditionContainer |
createCondition(LogicalOperator op)
Creates a ConditionContainer for this query. |
ConditionContainer |
getCondition()
Gets the condition container for this Query . |
boolean |
getDuplicatedRows()
Deprecated. Use SQLDataProvider.getDuplicatedRows() . |
int |
getMaxRetrievalTime()
Gets the maximum amount of time, in milliseconds, to wait for data to be retrieved. |
int |
getMaxRowsRetrieved()
Gets the maximum number of rows retrieved from the database. |
PromptOrder |
getPromptOrder()
Returns a collection with all prompts contained in this query. |
QuerySorts |
getQuerySorts()
Gets a collection of the sorts used in this query. |
DataSourceObject |
getResultObject(int index)
Gets an object in the query by index. |
int |
getResultObjectCount()
Gets the amount of objects in the query. |
Scope |
getScope()
Gets the scope of analysis. |
java.lang.String |
getSQL()
Deprecated. Use SQLDataProvider.getSQLContainer() and
SQLSelectStatement.getSQL() . |
boolean |
hasCondition()
Returns true when a condition has been set on the Query. |
boolean |
isStripped()
|
void |
removeAllResultObjects()
Removes any objects from the query. |
void |
removeCondition()
Removes any condition container in the Query. |
void |
removeResultObject(DataSourceObject obj)
Removes an object from the query. |
boolean |
resetContexts()
Verifies if contexts will be prompted upon a refresh or when the query is run. |
void |
resetContexts(boolean b)
Set if contexts will be prompted upon a refresh or when a query is run. |
void |
setDuplicatedRows(boolean allow)
Deprecated. Use SQLDataProvider.setDuplicatedRows(boolean allow) . |
void |
setMaxRetrievalTime(int time)
Changes the maximum amount of time, in milliseconds, to wait for data to be retrieved. |
void |
setMaxRowsRetrieved(int rows)
Changes the maximum number of rows that can be retrieved from the database. |
void |
setStripped(boolean b)
|
Methods inherited from interface com.businessobjects.rebean.wi.QueryNode |
---|
getID, getQueryNodeAt, remove, removeAllChildren |
Methods inherited from interface com.businessobjects.rebean.wi.TreeNode |
---|
getChildAt, getChildCount, getIndex, getParent, isLeaf |
Method Detail |
---|
Scope getScope()
Scope
instance allowing the user to view or
modify the scope of analysis.int getMaxRowsRetrieved()
Query.setMaxRowsRetrieved(int)
.
-1
when there is no
maximum defined.void setMaxRowsRetrieved(int rows)
rows
- The maximum number of rows. A negative value will remove any
maximum row limit.int getMaxRetrievalTime()
-1
when there is no
maximum defined. Note The default is -1, or no maximum
wait time.void setMaxRetrievalTime(int time)
time
- The maximum amount of time. A negative value will remove any
maximum time limit.@Deprecated boolean getDuplicatedRows()
SQLDataProvider.getDuplicatedRows()
.
true
when identical rows will be retrieved
as often as they appear in the data, or false
when
identical rows will be retrieved only once.@Deprecated void setDuplicatedRows(boolean allow)
SQLDataProvider.setDuplicatedRows(boolean allow)
.
allow
- Set to true
for identical rows to be retrieved
as often as they appear, set to false
for
identical rows to be retrieved once only.@Deprecated java.lang.String getSQL()
SQLDataProvider.getSQLContainer()
and
SQLSelectStatement.getSQL()
.
SQLDataProvider.getSQLContainer()
to return the SQL part of a
Query
.
void addResultObject(DataSourceObject obj)
Query
. After a call to
DataProvider.runQuery()
, this object will appear in the
ReportDictionary
so that it can be used in a report.
If obj
already exists in the query, the method call is
ignored; the object will not be added twice.
When obj
is a class or a hierarchy, all objects and
classes or hierarchies in that class or hierarchy will recursively be
added. This means that when a class A contains a class B and
obj
is A, all objects in class B will be added as well.
Any objects that already were in the query will not be added again. Note
that any detail objects will not be added this way; they have to be added
manually.
obj
- The DataSourceObject
to add.
java.lang.NullPointerException
- If obj
is null
.
java.lang.IllegalArgumentException
- If obj
is a predefined condition (predefined
conditions can only be added using
ConditionContainer.createConditionObject(DataSourceObject)
).
UnsupportedFeatureException
- if DataProviderFeature.EDIT_QUERY
isn't granted.DataSourceObject getResultObject(int index)
index
- The index of the object (0 based).
DataSourceObject
at index
.
java.lang.ArrayIndexOutOfBoundsException
- If index
is invalid.void removeResultObject(DataSourceObject obj)
obj
- The DataSourceObject
to remove. When
obj
is not in the query or when it is
null
, no error is generated.
UnsupportedFeatureException
- if DataProviderFeature.EDIT_QUERY
isn't granted.void removeAllResultObjects()
UnsupportedFeatureException
- if DataProviderFeature.EDIT_QUERY
isn't granted.int getResultObjectCount()
boolean hasCondition()
true
when a condition has been set on the Query.
true
when at least one condition has been
set.ConditionContainer createCondition(LogicalOperator op)
ConditionContainer
for this query. This method
is the starting point for creating conditions. If the Query already has a
condition container, it will be replaced with the new one.
op
- An operator to use when more than one conditions are held in
the ConditionContainer
.
ConditionContainer
created.
java.lang.NullPointerException
- When op
is null
.
UnsupportedFeatureException
- if DataProviderFeature.EDIT_QUERY
isn't granted.ConditionContainer getCondition()
Query
.
ConditionContainer
, or null
when there is no condition container for this Query
.ConditionContainer copyCondition(ConditionContainer cont)
cont
and makes that this query's condition
container. Any existing container will be replaced by the copy of
cont
.
cont
- The container to use for this query.
cont
).
UnsupportedFeatureException
- if DataProviderFeature.EDIT_QUERY
isn't granted.void removeCondition()
UnsupportedFeatureException
- if DataProviderFeature.EDIT_QUERY
isn't granted.boolean resetContexts()
true
when contexts will be reset upon a
refresh.DocumentInstance.refresh()
,
DataProvider.runQuery()
void resetContexts(boolean b)
b
- When true
, contexts will be reset upon a
refresh.DocumentInstance.refresh()
,
DataProvider.runQuery()
PromptOrder getPromptOrder()
QuerySorts getQuerySorts()
boolean isStripped()
void setStripped(boolean b)
b
- boolean containsUnresolvableResultsObjects()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |