|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines methods that shape the Query
object at a query level.
Method Summary | |
void |
addCubeMeasures(java.lang.String[] measures) Adds one or more measures to an existing query in a Query object. |
void |
applyDataMap(DataMap map) Adds the types in the specified data map to the DataMap for this Query object. |
void |
applyMetadataMap(int edge, MetadataMap map) Adds the types in the specified metadata map to the MetadataMap of this Query object. |
void |
applyMetadataMap(java.lang.String dimension, MetadataMap map) Adds the types in the specified metadata map to the MetadataMap for a specific dimension in this Query object. |
DataMap |
getDataMap() Retrieves a map that represents all data types requested by all current clients of this Query object. |
java.lang.String[] |
getMeasures() Retrieves a list of the measure names that a Query object is using. |
MetadataMap |
getMetadataMap(int edge) Retrieves a map that represents all metadata types that were requested by all current clients of this Query for the specified edge. |
MetadataMap |
getMetadataMap(java.lang.String dimension) Retrieves a map that represents all metadata types that were requested by all current clients of this Query object for the specified dimension. |
void |
initCubeQuery(java.lang.String[] measures, java.lang.String[][] dimensions) Initializes a Query object based on one or more specified measures. |
void |
initQuery(java.lang.String[][] dimensions, java.lang.String[] measures) Creates a default query based on the specified dimensions; an optional measure can also be specified. |
java.lang.Boolean |
isDependentOn(MDObject object) Checks a given MDObject (measures are the only type of MDObject checked at this time) and determines if the query makes use of the object in its selections or measure list. |
void |
refresh(boolean rebuild) Refreshes all cursors and/or structures of this Query object. |
void |
removeCubeMeasures(java.lang.String[] measures) Removes one or more measures from an existing query. |
void |
setDataMap(DataMap map) Specifies a map that determines the contents of future data cursors for this query for all clients of this Query . |
void |
setMetadataMap(java.lang.String dimension, MetadataMap map) Specifies a map that determines the contents of future metadata cursors for all clients of this Query object. |
ValidationObject |
validate(int validationType) Validates the entire Query object with OLAPI. |
ValidationObject |
validate(int validationType, int edge) Validates an entire edge of a query with OLAPI. |
ValidationObject |
validate(int validationType, Selection selection) Validates a Selection with OLAPI. |
ValidationObject |
validate(int validationType, Step step) Validates a specific Step with OLAPI. |
Methods inherited from interface oracle.dss.dataSource.common.BaseManager |
addQueryListener, cancel, clone, getFetchPageEdge, getFetchSize, getQueryState, getSuppressionState, isAsymmetricDrilling, isAutoUpdate, isEvaluateCursor, isHierarchicalDrilling, isUpdatePending, removeQueryListener, setAsymmetricDrilling, setAutoUpdate, setEvaluateCursor, setFetchPageEdge, setFetchSize, setHierarchicalDrilling, setQueryState, setSuppressionState, update |
Method Detail |
public void addCubeMeasures(java.lang.String[] measures) throws InvalidStepArgException, SelectionException, QueryException, MetadataManagerException
Query
object. Creates a query if none exists.measures
- An array of the names of the measures to add to the query.InvalidStepArgException
- If a step in a selection is bad.SelectionException
- If a selection can not be created.QueryException
- If there is a problem fetching data after this operation.MetadataManagerException
- If an error occurred using the MetadataManager bean.public void applyDataMap(DataMap map)
Query
object. These data map types will be included in subsequent data cursors for the Query
object.map
- The DataMap
that contains the desired types (such as formatted or unformatted data).public void applyMetadataMap(java.lang.String dimension, MetadataMap map) throws QueryException, InvalidStepArgException, MetadataManagerException, SelectionException
Query
object. These metadata types will be included in subsequent metadata cursors for this Query
object.dimension
- The dimension to which this map should be applied.map
- The MetadataMap
that contains the desired types (such as short labels or long labels).InvalidStepArgException
- If a step in a selection is bad.SelectionException
- If a selection can not be created.QueryException
- If there is a problem fetching data after this operation.MetadataManagerException
- If an error occurred using the MetadataManager bean.public void applyMetadataMap(int edge, MetadataMap map) throws QueryException, InvalidStepArgException, MetadataManagerException, SelectionException
Query
object. These metadata types will be included in subsequent metadata cursors for the edges of this Query
object.edge
- The edge to which these metadata types apply. Use the oracle.dss.util.DataDirector
constants with the suffix _EDGE to specify edges.map
- The MetadataMap
that contains the desired types (such as short labels or long labels).InvalidStepArgException
- If a step in a selection is bad.SelectionException
- If a selection can not be created.QueryException
- If there is a problem fetching data after this operation.MetadataManagerException
- If an error occurred using the MetadataManager bean.DataDirector.COLUMN_EDGE
, DataDirector.ROW_EDGE
, DataDirector.PAGE_EDGE
public void initCubeQuery(java.lang.String[] measures, java.lang.String[][] dimensions) throws QueryException, InvalidStepArgException, SelectionException, java.lang.IllegalArgumentException, MetadataManagerException
Query
object based on one or more specified measures. The dimensions
parameter is optional when initializing a cube (or multidimensional) query.measures
- An array of measure names.dimensions
- An optional array of dimension layout arrays.QueryException
- If a cursor can not be created for this query.InvalidStepArgException
- If a step in a selection is bad.SelectionException
- If a selection can not be created.java.lang.IllegalArgumentException
- If one or more of the arguments is invalid.MetadataManagerException
- If an error occurred using the MetadataManager bean.public void initQuery(java.lang.String[][] dimensions, java.lang.String[] measures) throws QueryException, InvalidStepArgException, SelectionException, java.lang.IllegalArgumentException, MetadataManagerException
dimensions
- An array of dimension layout arrays.measure
- An optional measure. (If null, the OLAPI 'Value' Source will be used.)QueryException
- If a cursor can not be created for this query.InvalidStepArgException
- If a step in a selection is bad.SelectionException
- If a selection can not be created.java.lang.IllegalArgumentException
- If one or more of the arguments is invalid.MetadataManagerException
- If an error occurred using the MetadataManager bean.public DataMap getDataMap()
Query
object.public MetadataMap getMetadataMap(java.lang.String dimension)
Query
object for the specified dimension.dimension
- The dimension for which metadata types have been requested. null
if default.public MetadataMap getMetadataMap(int edge)
edge
- The edge for which metadata types have been requested. To specify an edge, use one of the constants that end with _EDGE in oracle.dss.util.DataDirector
.DataDirector.COLUMN_EDGE
, DataDirector.ROW_EDGE
, DataDirector.PAGE_EDGE
public void removeCubeMeasures(java.lang.String[] measures) throws InvalidStepArgException, SelectionException, QueryException, MetadataManagerException
measures
- An array of the names of the measures to be removed.InvalidStepArgException
- If a step in a selection is bad.SelectionException
- If a selection can not be created.QueryException
- If there is a problem fetching data after this operation.MetadataManagerException
- If an error occurred using the MetadataManager bean.public void setDataMap(DataMap map)
Query
. (Resets cumulative applyDataMap
operations; generally only called on a clone of the Query
.)map
- The map that contains the desired data types.public void setMetadataMap(java.lang.String dimension, MetadataMap map) throws QueryException, InvalidStepArgException, MetadataManagerException, SelectionException
Query
object. (Resets cumulative applyMetadataMap
operations; generally only called on a clone of the Query
.)dimension
- The name of the dimension for which the MetadataMap
is to be specified.map
- The MetadataMap
that contains the desired metadata types.InvalidStepArgException
- If a step in a selection is bad.SelectionException
- If a selection can not be created.QueryException
- If there is a problem fetching data after this operation.MetadataManagerException
- If an error occurred using the MetadataManager bean.public void refresh(boolean rebuild) throws QueryException, InvalidStepArgException, SelectionException, MetadataManagerException
Query
object.rebuild
- if true
, refreshes the structural elements of the query such as calculations. If false, false
a minimal refresh from the database is performedInvalidStepArgException
- If a step in a selection is bad.SelectionException
- If a selection can not be created.QueryException
- If there is a problem fetching data after this operation.MetadataManagerException
- If an error occurred using the MetadataManager bean.public java.lang.String[] getMeasures()
Query
object is using.public java.lang.Boolean isDependentOn(MDObject object)
object
- MDObject representing the object to checktrue
if the query uses the object, false
otherwisepublic ValidationObject validate(int validationType) throws InvalidStepArgException, MetadataManagerException, SelectionException, QueryException
Query
object with OLAPI.validationType
- OR-able constants that indicate the types of validation to perform. Use the constants from the ValidationObject
class.ValidationObject
that indicates the results of validation.InvalidStepArgException
- If a step in a selection is bad.SelectionException
- If a selection can not be created.QueryException
- If there is a problem fetching data after this operation.MetadataManagerException
- If an error occurred using the MetadataManager bean.ValidationObject
public ValidationObject validate(int validationType, int edge) throws InvalidStepArgException, MetadataManagerException, SelectionException, QueryException
validationType
- OR-able constants that indicate types of validation to perform. Use the constants from the ValidationObject
class.edge
- The edge to validate. To specify an edge, use one of the constants that end with _EDGE in oracle.dss.util.DataDirector
.ValidationObject
that indicates the results of validation.InvalidStepArgException
- If a step in a selection is bad.SelectionException
- If a selection can not be created.QueryException
- If there is a problem fetching data after this operation.MetadataManagerException
- If an error occurred using the MetadataManager bean.ValidationObject
, DataDirector.COLUMN_EDGE
, DataDirector.ROW_EDGE
, DataDirector.PAGE_EDGE
public ValidationObject validate(int validationType, Selection selection) throws InvalidStepArgException, MetadataManagerException, SelectionException, QueryException
validationType
- OR-able constants that indicate the types of validation to perform.selection
- Selection to validate.ValidationObject
indicating results of validationInvalidStepArgException
- If a step in a selection is bad.SelectionException
- If a selection can not be created.QueryException
- If there is a problem fetching data after this operation.MetadataManagerException
- If an error occurred using the MetadataManager bean.ValidationObject
public ValidationObject validate(int validationType, Step step) throws InvalidStepArgException, MetadataManagerException, SelectionException, QueryException
validationType
- OR-able constants indicating types of validation to perform. Use the constants from the ValidationObject
class.step
- The step to validate.ValidationObject
that indicates the results of validation.InvalidStepArgException
- If a step in a selection is bad.SelectionException
- If a selection can not be created.QueryException
- If there is a problem fetching data after this operation.MetadataManagerException
- If an error occurred using the MetadataManager bean.ValidationObject
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |