Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


oracle.dss.datautil
Interface QueryContext

All Known Implementing Classes:
Query

public interface QueryContext

Methods that QueryBuilder and CalcBuilder beans require from a Query bean to get QueryAccess objects for use during a QueryBuilder or CalcBuilder session. For example, the QueryAccess object lets the QueryBuilder bean work with available selections and selected selections. Eventually the changes that are made in the selected selections of the QueryAccess object are applied to the original Query object.


Method Summary
 boolean applyQueryAccess(QueryAccess qa, boolean update)
          Updates the implementing Query object with the changed selection information in the specified QueryAccess object.
 QueryAccess createQueryAccess()
          Creates and returns an object that implements the QueryAccess interface.

 

Method Detail

createQueryAccess

public QueryAccess createQueryAccess()
Creates and returns an object that implements the QueryAccess interface. This QueryAccess object can make use of the QueryContext implementor (such as a Query object) for Selection state and Selection evaluation services.
Returns:
An object that implements the QueryAccess interface.

applyQueryAccess

public boolean applyQueryAccess(QueryAccess qa,
                                boolean update)
Updates the implementing Query object with the changed selection information in the specified QueryAccess object.
Parameters:
qa - The QueryAccess object that contains the state changes (selections) to apply to the QueryContext implementor, assuming that it has been initialized.
update - true if the QueryAccess object is finished with the QueryContext and the implementor may run a query based on the new state, if desired; false if the QueryAccess object is not finished with the QueryContext.
Returns:
true if the update is successful; false if the update is not successful.

Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


Copyright © 2003, Oracle. All Rights Reserved.