Skip navigation links

Oracle® OLAP Java API Reference
11g Release 1 (11.1)

B28128-02


oracle.olapi.metadata.mdm
Class MdmCube

java.lang.Object
  extended by oracle.olapi.metadata.BaseMetadataObject
      extended by oracle.olapi.metadata.mdm.MdmObject
          extended by oracle.olapi.metadata.mdm.MdmSource
              extended by oracle.olapi.metadata.mdm.MdmDimensionedObject
                  extended by oracle.olapi.metadata.mdm.MdmCube

All Implemented Interfaces:
MdmQuery, MetadataObject, Buildable

public class MdmCube
extends MdmDimensionedObject
implements MdmQuery, Buildable

An MdmDimensionedObject that represents a logical organization of MdmMeasure objects that have the same dimensionality. To get an existing MdmCube or to create a new one, use the findOrCreateCube method of an MdmDatabaseSchema.


Method Summary
 java.lang.Object acceptVisitor(MdmObjectVisitor visitor, java.lang.Object context)
          Calls the visitMdmCube method of the MdmObjectVisitor and passes that method this MdmCube and an Object.
 void addCubeMap(CubeMap map)
          Adds a CubeMap to the List of CubeMap objects associated with this MdmCube.
 void addMeasure(MdmMeasure value)
          Adds an MdmMeasure to the List of MdmMeasure objects organized by this MdmCube.
 AWCubeOrganization createAWOrganization(AW aw, boolean replaceExisting)
          Creates an AWCubeOrganization and possibly associates it with this MdmCube.
 CubeMap createCubeMap()
          Creates a CubeMap for this MdmCube.
 RolapCubeOrganization createRolapOrganization(boolean replaceExisting)
          Creates a RolapCubeOrganization and possibly associates it with this MdmCube.
 MdmBaseMeasure findOrCreateBaseMeasure(java.lang.String publicName)
          Gets the specified MdmBaseMeasure or, if it does not already exist, creates a new MdmBaseMeasure for this MdmCube.
 MdmDerivedMeasure findOrCreateDerivedMeasure(java.lang.String publicName)
          Gets the specified MdmDerivedMeasure or, if it does not already exist, creates a new MdmDerivedMeasure for this MdmCube.
 ConsistentSolveSpecification getConsistentSolveSpecification()
          Gets the ConsistentSolveSpecification that is associated with this MdmCube.
 java.util.List getCubeMaps()
          Gets the CubeMap objects that are associated with this MdmCube.
 MdmMeasure getMeasure(java.lang.String name)
          Gets the specified MdmMeasure that is associated with this MdmCube.
 java.util.List<MdmMeasure> getMeasures()
          Gets the MdmMeasure objects that are associated with this MdmCube.
 CubeOrganization getOrganization()
          Gets the CubeOrganization associated with this MdmCube.
 MdmDatabaseSchema getOwner()
          Gets the MdmDatabaseSchema that owns this MdmCube.
 java.util.List getPersistentLanguages()
          Returns the list of all languages used for descriptions of this MdmCube and all objects owned by this MdmCube.
 Query getQuery()
          Gets the Query that is associated with this MdmCube.
 MdmQueryColumn getQueryColumn(java.lang.String name)
          Gets the specified MdmQueryColumn.
 java.util.List<MdmQueryColumn> getQueryColumns()
          Gets the MdmQueryColumn objects that are associated with this MdmCube.
 java.lang.String getQueryName()
          Gets the identifier of this MdmCube.
 MetadataObject getType()
          Gets the OLAP Java API Value data type.
 java.lang.String getViewName()
          Gets the name of the MdmViewColumn associated with this MdmCube.
 void removeCubeMap(CubeMap map)
          Removes a CubeMap from the List of CubeMap objects associated with this MdmCube.
 void removeMeasure(MdmMeasure value)
          Removes an MdmMeasure from the List of MdmMeasure objects organized by this MdmCube.
 void setConsistentSolveSpecification(ConsistentSolveSpecification input)
          Specifies a ConsistentSolveSpecification to associate with this MdmCube.
 void setOwner(MdmDatabaseSchema owner)
          Specifies an MdmDatabaseSchema as the owner of this MdmCube.
 void setViewName(java.lang.String name)
          Specifies an MdmViewColumn to associate with this MdmCube.

 

Methods inherited from class oracle.olapi.metadata.mdm.MdmDimensionedObject
addDimension, addDimensionality, getDimensionality, getDimensions, isBooleanValued, removeDimensionality, setBooleanValued

 

Methods inherited from class oracle.olapi.metadata.mdm.MdmSource
getDataType, getModel, getSource, getSourceMap, setModel

 

Methods inherited from class oracle.olapi.metadata.mdm.MdmObject
findOrCreateDescription, getDescription, getDescription, getDescription, getMetadataProvider, getName, getShortDescription, setDescription, setDescription, setDescription, setName, setShortDescription

 

Methods inherited from class oracle.olapi.metadata.BaseMetadataObject
getID

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

acceptVisitor

public java.lang.Object acceptVisitor(MdmObjectVisitor visitor,
                                      java.lang.Object context)
Calls the visitMdmCube method of the MdmObjectVisitor and passes that method this MdmCube and an Object.
Specified by:
acceptVisitor in class MdmObject
Parameters:
visitor - An MdmObjectVisitor that implements the Mdm11_ObjectVisitor interface.
context - An Object.
Returns:
The Object returned by the visitMdmCube method.

getMeasure

public final MdmMeasure getMeasure(java.lang.String name)
Gets the specified MdmMeasure that is associated with this MdmCube.
Parameters:
name - A String that contains the name of an MdmMeasure associated with this MdmCube.
Returns:
The MdmMeasure that has the specified name. If the MdmMeasure is not associated with the MdmCube, then this method returns null.

getMeasures

public final java.util.List<MdmMeasure> getMeasures()
Gets the MdmMeasure objects that are associated with this MdmCube.
Returns:
A List of the MdmMeasure associated with this MdmCube.

addMeasure

public void addMeasure(MdmMeasure value)
Adds an MdmMeasure to the List of MdmMeasure objects organized by this MdmCube.
Parameters:
value - The MdmMeasure to add to this MdmCube.

removeMeasure

public void removeMeasure(MdmMeasure value)
Removes an MdmMeasure from the List of MdmMeasure objects organized by this MdmCube.
Parameters:
value - The MdmMeasure to remove to this MdmCube.

getOwner

public final MdmDatabaseSchema getOwner()
Gets the MdmDatabaseSchema that owns this MdmCube.
Overrides:
getOwner in class BaseMetadataObject
Returns:
The MdmDatabaseSchema that owns this MdmCube.

setOwner

public final void setOwner(MdmDatabaseSchema owner)
Specifies an MdmDatabaseSchema as the owner of this MdmCube.
Parameters:
owner - The MdmDatabaseSchema to specify as the owner of this MdmCube.

getCubeMaps

public final java.util.List getCubeMaps()
Gets the CubeMap objects that are associated with this MdmCube.
Returns:
A List of the CubeMap objects associated with this MdmCube.

addCubeMap

public final void addCubeMap(CubeMap map)
Adds a CubeMap to the List of CubeMap objects associated with this MdmCube.
Parameters:
map - The CubeMap to add to this MdmCube.

removeCubeMap

public final void removeCubeMap(CubeMap map)
Removes a CubeMap from the List of CubeMap objects associated with this MdmCube.
Parameters:
map - The CubeMap to remove from this MdmCube.

getOrganization

public final CubeOrganization getOrganization()
Gets the CubeOrganization associated with this MdmCube.
Returns:
The CubeOrganization for this MdmCube.

createAWOrganization

public final AWCubeOrganization createAWOrganization(AW aw,
                                                     boolean replaceExisting)
Creates an AWCubeOrganization and possibly associates it with this MdmCube. The replaceExisting parameter specifies whether the new AWCubeOrganization should replace the current CubeOrganization if the MdmCube already has one.
Parameters:
aw - The AW object to associate with the AWCubeOrganization.
replaceExisting - A boolean that is true if the new AWCubeOrganization should replace the current CubeOrganization, if any, or false if it should not replace it.
Returns:
The new AWCubeOrganization.

createRolapOrganization

public final RolapCubeOrganization createRolapOrganization(boolean replaceExisting)
Creates a RolapCubeOrganization and possibly associates it with this MdmCube. The replaceExisting parameter specifies whether the new RolapCubeOrganization should replace the current CubeOrganization if the MdmCube already has one.
Parameters:
replaceExisting - A boolean that is true if the new RolapCubeOrganization should replace the current CubeOrganization, if any, or false if it should not replace it.
Returns:
The new RolapCubeOrganization.

getConsistentSolveSpecification

public final ConsistentSolveSpecification getConsistentSolveSpecification()
Gets the ConsistentSolveSpecification that is associated with this MdmCube.
Returns:
The ConsistentSolveSpecification associated with this MdmCube.

setConsistentSolveSpecification

public final void setConsistentSolveSpecification(ConsistentSolveSpecification input)
Specifies a ConsistentSolveSpecification to associate with this MdmCube.
Parameters:
input - The ConsistentSolveSpecification to associate with this MdmCube.

getViewName

public final java.lang.String getViewName()
Gets the name of the MdmViewColumn associated with this MdmCube.
Returns:
A String that contains the name of the MdmViewColumn associated with the MdmCube.

setViewName

public final void setViewName(java.lang.String name)
Specifies an MdmViewColumn to associate with this MdmCube.
Parameters:
name - The MdmViewColumn to associate with this MdmCube.

getQuery

public final Query getQuery()
Gets the Query that is associated with this MdmCube.
Specified by:
getQuery in interface MdmQuery
Returns:
The Query associated with this MdmCube.

getQueryColumns

public final java.util.List<MdmQueryColumn> getQueryColumns()
Gets the MdmQueryColumn objects that are associated with this MdmCube.
Specified by:
getQueryColumns in interface MdmQuery
Returns:
A List of the MdmQueryColumn objects associated with this MdmCube.

getQueryName

public final java.lang.String getQueryName()
Gets the identifier of this MdmCube.
Specified by:
getQueryName in interface MdmQuery
Returns:
A String that contains the identifier of this MdmCube.

getQueryColumn

public MdmQueryColumn getQueryColumn(java.lang.String name)
Gets the specified MdmQueryColumn.
Specified by:
getQueryColumn in interface MdmQuery
Parameters:
name - A String that contains the name of an MdmQueryColumn.
Returns:
The MdmQueryColumn that has the specified name.

getType

public MetadataObject getType()
Gets the OLAP Java API Value data type. An MdmCube does not have a value, so it does not have a more specific data type.
Specified by:
getType in class MdmSource
Returns:
A MetadataObject that represents the OLAP Java API Value data type.

findOrCreateBaseMeasure

public MdmBaseMeasure findOrCreateBaseMeasure(java.lang.String publicName)
Gets the specified MdmBaseMeasure or, if it does not already exist, creates a new MdmBaseMeasure for this MdmCube.
Parameters:
publicName - A String that contains the name of the MdmBaseMeasure to get or create.
Returns:
The specified MdmBaseMeasure or a new one with the specified name.

findOrCreateDerivedMeasure

public MdmDerivedMeasure findOrCreateDerivedMeasure(java.lang.String publicName)
Gets the specified MdmDerivedMeasure or, if it does not already exist, creates a new MdmDerivedMeasure for this MdmCube.
Parameters:
publicName - A String that contains the name of the MdmDerivedMeasure to get or create.
Returns:
The specified MdmDerivedMeasure or a new one with the specified name.

createCubeMap

public CubeMap createCubeMap()
Creates a CubeMap for this MdmCube.
Returns:
The CubeMap for this MdmCube.

getPersistentLanguages

public java.util.List getPersistentLanguages()
Returns the list of all languages used for descriptions of this MdmCube and all objects owned by this MdmCube.
Returns:
List of Strings representing NLS Languages.

Skip navigation links

Copyright © 2002, 2007, Oracle. All rights reserved.