In the Query
object, a query is represented as a cube. Metadata refers to information such as the labels for the edges of the cube, drill state, and indentation of the labels. When you specify a metadata map, you determine the types of metadata that will be fetched for all clients and subsequent cubes that will be used for this query.
You can also add to the types of metadata that you have previously specified by using either form of the applyMetadataMap
method.
The following code excerpt provides an example of creating a Metadata map for the variable m_query
, which represents a Query object.
//Define metadata for the query by specifying a metadata map //This example refers to all metadata because the dimension parameter //is null. It specifies that long labels, short labels and the default //in the database will be available for the labels of all cube edges. m_query.setMetadataMap ((String)null, new MetadataMap(new String[] {MetadataMap.METADATA_VALUE, MetadataMap.METADATA_SHORTLABEL, MetadataMap.METADATA_LONGLABEL}));