<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines common functionality that is useful in the other Manager interfaces (such as BaseClientManager
, and DrillManager
) of the Query
object.
Method Summary | |
void |
addQueryListener(QueryListener l) Adds a listener to the listener list for this Query object. |
void |
cancel() Cancels a current operation on the stack. |
java.lang.Object |
clone() Clones this QueryManager . |
boolean |
getFetchPageEdge() Returns whether entire page edges are fetched. |
int |
getFetchSize() Returns the currently-set fetch buffer size |
QueryState |
getQueryState() Retrieves a state marker (also known as a token or cookie) that represents the current Query object state. |
int |
getSuppressionState(int index) Retrieves the suppression state (NONE, NA, zero, or both NA and zero) that is used when data is fetched. |
boolean |
isAsymmetricDrilling() Indicates whether asymmetric drilling is set. |
boolean |
isAutoUpdate() Indicates whether all operations should be sent immediately to the middle tier for execution. |
boolean |
isEvaluateCursor() Indicates whether cursor evaluation will be performed. |
boolean |
isHierarchicalDrilling() Indicates whether hierarchical drilling is set exclusively. |
boolean |
isUpdatePending() Indicates whether any operations are pending. |
void |
removeQueryListener(QueryListener l) Removes a listener from the listener list for this Query object. |
void |
setAsymmetricDrilling(boolean asymmetric) Indicates whether asymmetric drilling should be used |
void |
setAutoUpdate(boolean b) Specifies whether all operations on the underlying query should be sent to the middle tier for immediate processing. |
void |
setEvaluateCursor(boolean evalCursor) Specifies whether cursor evaluation will be performed. |
void |
setFetchPageEdge(boolean fullfetch) Sets whether entire page edges are fetched. |
void |
setFetchSize(int size) Sets fetch buffer size |
void |
setHierarchicalDrilling(boolean hierDrill) Indicates whether hierarchical drilling should be used exclusively f |
void |
setQueryState(QueryState state) Restores the Query object to a previous state in this session. |
void |
setSuppressionState(int index, int suppress) Specifies the suppression (NONE, NA, zero, or both NA and zero) to use when data is fetched. |
void |
update() Signals this Query to execute pending operations in order. |
Method Detail |
public void addQueryListener(QueryListener l)
Query
object.l
- The QueryListener
to be added.public void removeQueryListener(QueryListener l)
Query
object.l
- The QueryListener
to be removed.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
QueryManager
.QueryManager
.java.lang.CloneNotSupportedException
- If a middle tier QueryManager
cannot be instantiated.public void update() throws java.lang.Exception
java.lang.Exception
- Any middle tier exception.public void setAutoUpdate(boolean b) throws java.lang.Exception
isAutoUpdate
.
(Note: Another way to force the immediate execution of pending operations is to invoke the update
method.)
b
- true
sends all pending operations to the middle tier for immediate processing, false
adds an operation to the pending queue.java.lang.Exception
- Any of the exceptions that are contained in the operations that are currently in the pending queue.public boolean isAutoUpdate()
true
if all operations are sent immediately to the middle tier for execution, false
if operations are to be added to the pending operations queue.public boolean isUpdatePending()
true
if operations are pending; false
if no operations are pending.public void setSuppressionState(int index, int suppress)
index
- A constant that specifies the edge of interest. Valid values are in oracle.dss.util.DataDirector
.suppress
- A constant that specifies the kind of suppression. Valid values are in oracle.dss.util.DataDirector
.DataDirector.NO_SUPPRESSION
, DataDirector.ZERO_SUPPRESSION
, DataDirector.NA_SUPPRESSION
, DataDirector.NA_ZERO_SUPPRESSION
, DataDirector.COLUMN_EDGE
, DataDirector.PAGE_EDGE
, DataDirector.ROW_EDGE
public int getSuppressionState(int index)
index
- A constant that specifies the edge of interest. Valid values are in oracle.dss.util.DataDirector
.oracle.dss.util.DataDirector
.DataDirector.NO_SUPPRESSION
, DataDirector.ZERO_SUPPRESSION
, DataDirector.NA_SUPPRESSION
, DataDirector.NA_ZERO_SUPPRESSION
, DataDirector.COLUMN_EDGE
, DataDirector.PAGE_EDGE
, DataDirector.ROW_EDGE
public void setQueryState(QueryState state) throws QueryException, InvalidStepArgException, SelectionException, MetadataManagerException
Query
object to a previous state in this session. Generates a StateChangedEvent
marked by the StateChangeEvent.STATE
constant.state
- State marker that was retrieved previously from an UndoAvailableEvent
.QueryException
- If there is a problem fetching data after this operation.InvalidStepArgException
- If a step in a selection is bad.SelectionException
- If a selection cannot be created.MetadataManagerException
- If an error occurred using the MetadataManager bean.StateChangeEvent.STATE
public QueryState getQueryState() throws CloneException
Query
object state. Later, in the same session, this state marker can be used as the parameter for setQueryState
to restore the state of this Query
object.Query
object.CloneException
- If the state cannot be duplicated.public void cancel()
public void setEvaluateCursor(boolean evalCursor) throws QueryException, InvalidStepArgException, SelectionException, MetadataManagerException
evalCursor
- true
indicates that cursors should be evaluated; false
indicates that cursors should not be evaluated.InvalidStepArgException
- If a step in a selection is bad.SelectionException
- If a selection cannot be created.QueryException
- If there is a problem fetching data after this operation.MetadataManagerException
- If an error occurred using the MetadataManager bean.public boolean isEvaluateCursor()
true
if cursor evaluation will be performed; false
if cursor evaluation will not be performed.public void setHierarchicalDrilling(boolean hierDrill)
hierDrill
- true
to always use hierarchical drillingpublic boolean isHierarchicalDrilling()
true
if hierarchical drilling is used exclusively; false
if hierarchical drilling is not set exclusively.public void setAsymmetricDrilling(boolean asymmetric)
asymmetric
- true
to use asymmetric drillingpublic boolean isAsymmetricDrilling()
true
if asymmetric drilling is set; false
if asymmetric drilling is not set.public void setFetchSize(int size)
size
- integer indicating number of values to fetch per buffer read for cursors. -1 turns partial fetching off and fetches the entire cursorpublic int getFetchSize()
public void setFetchPageEdge(boolean fullfetch)
true
.fullfetch
- if true
, the page edge is fully fetched. If not, partial fetching applies.public boolean getFetchPageEdge()
true
if entire page edges are fetched.
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |