|
Oracle® OLAP Java API Reference 12c Release 1 (12.1) E17708-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.olapi.metadata.BaseMetadataObject
oracle.olapi.metadata.PublicMetadataObject
oracle.olapi.metadata.mdm.MdmObject
oracle.olapi.metadata.mdm.MdmSchema
public class MdmSchema
A container for MdmCube, MdmPrimaryDimension, MdmTable, and other metadata objects. MdmSchema objects organize the metadata objects that are provided by an MdmMetadataProvider. The MdmRootSchema contains all of the objects provided by an MdmMetadataProvider. An MdmDatabaseSchema represents a database schema, which has all of the metadata objects associated with a particular database user. An MdmDatabaseSchema can have subschema objects, which are instances of MdmOrganizationalSchema, that organize the metadata objects into related groups.
To begin navigating the metadata that is accessible through an MdmMetadataProvider, call the getRootSchema method of the MdmMetadataProvider.
MdmMetadataProvider| Method Summary | |
|---|---|
java.lang.Object |
acceptVisitor(MdmObjectVisitor visitor, java.lang.Object context)Calls the visitMdmSchema method of the specified MdmObjectVisitor and passes that method the MdmSchema and the specified context object. |
void |
addCube(MdmCube cube)Adds the specified MdmCube to the MdmSchema. |
void |
addDimension(MdmPrimaryDimension dimension)Adds the specified MdmPrimaryDimension to the MdmSchema. |
void |
addMeasure(MdmMeasure measure)Adds the specified MdmMeasure to the MdmSchema. |
void |
addSubSchema(MdmSchema subschema)Adds the specified MdmSchema to the MdmSchema. |
java.util.List |
getCubes()Gets the MdmCube objects that the MdmSchema contains. |
java.util.List |
getDimensions()Gets the MdmPrimaryDimension objects that the MdmSchema contains. |
MdmMeasureDimension |
getMeasureDimension()Gets the MdmMeasureDimension for the MdmMetadataProvider that is associated with the MdmRootSchema. |
java.util.List |
getMeasures()Gets the MdmMeasure objects that the MdmSchema contains. |
MdmSchema |
getOuterSchema()Gets the MdmSchema that contains the MdmSchema, if the MdmSchema is a subschema of another MdmSchema. |
java.util.List |
getSubSchemas()Gets a List of the subschemas of the MdmSchema. |
void |
removeCube(MdmCube cube)Removes the specified MdmCube from the MdmSchema. |
void |
removeDimension(MdmPrimaryDimension dimension)Removes the specified MdmPrimaryDimension from the MdmSchema. |
void |
removeMeasure(MdmMeasure measure)Removes the specified MdmMeasure from the MdmSchema. |
void |
removeSubSchema(MdmSchema subschema)Removes the specified MdmSchema from the MdmSchema. |
| Methods inherited from class oracle.olapi.metadata.mdm.MdmObject |
|---|
addDescription, addObjectClassification, findOrCreateDescription, getDescription, getDescription, getDescription, getDescriptions, getMetadataProvider, getObjectClassifications, getShortDescription, isClassifiedAs, removeDescription, removeObjectClassification, setDescription, setDescription, setDescription, setName, setShortDescription |
| Methods inherited from class oracle.olapi.metadata.BaseMetadataObject |
|---|
getContainedByObject, getID, getName, getNewName, getOwner |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.Object acceptVisitor(MdmObjectVisitor visitor,
java.lang.Object context)
visitMdmSchema method of the specified MdmObjectVisitor and passes that method the MdmSchema and the specified context object.acceptVisitor in class MdmObjectvisitor - An MdmObjectVisitor.context - An Object.Object returned by the visitMdmSchema method.public java.util.List getDimensions()
MdmPrimaryDimension objects that the MdmSchema contains. The root MdmSchema contains all of the MdmPrimaryDimension objects available through an MdmMetadataProvider, except for the MdmMeasureDimension. To get the MdmMeasureDimension, call the getMeasureDimension method. MdmSchema objects under the root schema contain only the dimensions in the subschema and any subschemas that they contain.List of the MdmPrimaryDimension objects in the MdmSchema and its subschemas.
public MdmMeasureDimension getMeasureDimension()
throws oracle.express.mdm.MetadataNotFoundException
MdmMeasureDimension for the MdmMetadataProvider that is associated with the MdmRootSchema. The getMeasureDimension method of the MdmRootSchema returns the MdmMeasureDimension. For an MdmDatabaseSchema or MdmOrganizationalSchema, this method returns null.
The MdmMeasureDimension has all of the MdmMeasure objects that the MdmMetadataProvider provides. The getMeasures method of an MdmSchema returns a List of the measures associated with that MdmSchema.
MdmMeasureDimension associated with the MdmMetadataProvider.oracle.express.mdm.MetadataNotFoundExceptionpublic java.util.List getMeasures()
MdmMeasure objects that the MdmSchema contains.List of MdmMeasure objects that the MdmSchema contains.public java.util.List getSubSchemas()
List of the subschemas of the MdmSchema. The List contains instances of MdmOrganizationalSchema.List of the subschemas of the MdmSchema.public void addMeasure(MdmMeasure measure)
MdmMeasure to the MdmSchema.measure - The MdmMeasure to add to the MdmSchema.public void removeMeasure(MdmMeasure measure)
MdmMeasure from the MdmSchema.measure - The MdmMeasure to remove from the MdmSchema.public final void addDimension(MdmPrimaryDimension dimension)
MdmPrimaryDimension to the MdmSchema.dimension - The MdmPrimaryDimension to add to the MdmSchema.public final void removeDimension(MdmPrimaryDimension dimension)
MdmPrimaryDimension from the MdmSchema.dimension - The MdmPrimaryDimension to remove from the MdmSchema.public void addSubSchema(MdmSchema subschema)
MdmSchema to the MdmSchema.subschema - The MdmSchema to add to the MdmSchema.public void removeSubSchema(MdmSchema subschema)
MdmSchema from the MdmSchema.subschema - The MdmSchema to remove from the MdmSchema.public final void addCube(MdmCube cube)
MdmCube to the MdmSchema.cube - The MdmCube to add to the MdmSchema.public final void removeCube(MdmCube cube)
MdmCube from the MdmSchema.cube - The MdmCube to remove from the MdmSchema.public java.util.List getCubes()
MdmCube objects that the MdmSchema contains.List of MdmCube objects that the MdmSchema contains.public final MdmSchema getOuterSchema()
MdmSchema that contains the MdmSchema, if the MdmSchema is a subschema of another MdmSchema.MdmSchema that contains the MdmSchema.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||