com.businessobjects.rebean.wi
Interface QueryContainer

All Superinterfaces:
QueryNode, TreeNode

public interface QueryContainer
extends QueryNode

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

A QueryContainer is a set of Query objects and zero or more QueryContainer objects. Child objects are combined by CombinedQueryOperator.

Since:
11.5
See Also:
DataProvider.getCombinedQueries()

Method Summary
 Query createQuery()
          Adds a Query node in the container.
 QueryContainer createQueryContainer(CombinedQueryOperator op)
          Adds an empty QueryContainer child node to this container instance.
 CombinedQueryOperator getQueryContainerOperator()
          Returns the CombinedQueryOperator instance in QueryContainer instance.
 void setQueryContainerOperator(CombinedQueryOperator op)
          Changes the QueryContainer objects operator.
 
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

createQueryContainer

QueryContainer createQueryContainer(CombinedQueryOperator op)
Adds an empty QueryContainer child node to this container instance.

Note if SQLDataProvider using database sampling mode SQLDataProvider.getSamplingMode(), this call will cancel database sampling mode.

Parameters:
op - A CombinedQueryOperator to initialize the new container.
Returns:
The new QueryContainer instance.
Throws:
UnsupportedFeatureException - if DataProviderFeature.EDIT_QUERY isn't granted.
UnsupportedFeatureException - if DataProviderFeature.CREATE_COMBINED_QUERY isn't granted.

getQueryContainerOperator

CombinedQueryOperator getQueryContainerOperator()
Returns the CombinedQueryOperator instance in QueryContainer instance.

Returns:
The QueryContainer operator.

setQueryContainerOperator

void setQueryContainerOperator(CombinedQueryOperator op)
Changes the QueryContainer objects operator.

Parameters:
op - The new CombinedQueryOperator
Throws:
UnsupportedFeatureException - if DataProviderFeature.EDIT_QUERY isn't granted but op is different from previous value.

createQuery

Query createQuery()
Adds a Query node in the container.

Note if SQLDataProvider using database sampling mode SQLDataProvider.getSamplingMode(), this call will cancel database sampling mode.

Returns:
a Query instance.
Throws:
UnsupportedFeatureException - if DataProviderFeature.EDIT_QUERY isn't granted.
UnsupportedFeatureException - if DataProviderFeature.CREATE_COMBINED_QUERY isn't granted.