SAP BI Java SDK

com.sap.ip.bi.sdk.dac.relational.query
Interface IBIQuery

All Superinterfaces:
IBIQueryRepository

public interface IBIQuery
extends IBIQueryRepository

A relational query model based on the Expressions package of the Common Warehouse Metamodel. The Expressions package supports the definition of arbitrary expression trees. Expression trees are based on a functional view of expressions, using the prefix notation to allow for simple representation within this package. For example, the expression a+b could be translated into sum(a,b).

This model is semantic-independent, meaning that the semantics of an expression -- for example, SQL generation -- are not part of this model, and are left to the consumer of an expression instance.

Since:
3.50
See Also:
"See the Common Warehouse Metamodel on the Internet"

Method Summary
 ResultSet execute()
          Retrieves the result set of the current query.
 IBICommandProcessor getCommandProcessor()
          Retrieves the command processor for this query.
 Object getExpression()
          Retrieves the current query expression, bypassing the Command Processor.
 void setExpression(Object expression)
          Sets the query expression, bypassing the Command Processor.
 boolean supports(IBIRelational.Supports feature)
          Checks whether this feature is supported.
 void synchronize()
          Synchronizes the command processor with the query.
 
Methods inherited from interface com.sap.ip.bi.sdk.dac.relational.query.IBIQueryRepository
getRefPackage
 

Method Detail

setExpression

public void setExpression(Object expression)
                   throws BIResourceException
Sets the query expression, bypassing the Command Processor.
Parameters:
expression - the query expression
Throws:
BIResourceException - if the type of the query expression is not supported
See Also:
getExpression()

getExpression

public Object getExpression()
                     throws BIResourceException
Retrieves the current query expression, bypassing the Command Processor.
Returns:
the query expression
Throws:
BIResourceException - if this operation fails
See Also:
setExpression(java.lang.Object)

execute

public ResultSet execute()
                  throws BIResourceException
Retrieves the result set of the current query.
Returns:
the result set
Throws:
BIResourceException - if the query execution fails

getCommandProcessor

public IBICommandProcessor getCommandProcessor()
                                        throws BIResourceException
Retrieves the command processor for this query.
Returns:
the command processor
Throws:
BIResourceException - if the command processor could not be instantiated

supports

public boolean supports(IBIRelational.Supports feature)
Checks whether this feature is supported.
Parameters:
feature - the feature
Returns:
true if this feature is supported; false otherwise

synchronize

public void synchronize()
                 throws BIResourceException
Synchronizes the command processor with the query.
Throws:
BIResourceException - if an error occurs during the generation of the expression

SAP BI Java SDK

Copyright © 2004-2006 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.