public abstract class MdmHierarchy extends MdmSubDimension implements MdmViewColumnOwner, MdmQuery
MdmSubDimension
that represents members of an Oracle OLAP dimension that are organized either hierarchically or nonhierarchically. An MdmHierarchy
is a component of an MdmPrimaryDimension
.
A hierarchical organization is defined by parent-child relationships between the members of the hierarchy. If the parent-child relationships are defined by levels, then the MdmHierarchy
is an MdmLevelHierarchy
, which has a component MdmLevel
object for each level. If the parent-child relationships are defined by values and not by levels, then the MdmHierarchy
is an MdmValueHierarchy
.
A nonhierarchical MdmHierarchy
is one that is not organized by parent-child relationships. It is represented by an MdmLevelHierarchy
that has only one level.
MdmAttribute
objects record the parent-child relationships among the members of an MdmHierarchy
You use the getParentAttribute
and getAncestorsAttribute
methods to get the MdmAttribute
objects that relate parents to children and ancestors to descendents, respectively.
Modifier and Type | Method and Description |
---|---|
MdmAttribute |
getAncestorsAttribute()
Gets the ancestors attribute for this
MdmHierarchy . |
abstract MdmDimensionMemberInfo |
getDefaultMember()
Gets the
MdmDimensionMemberInfo that is associated with the default member of this MdmHierarchy . |
MdmQueryColumn |
getETDepthColumn()
Gets the
MdmQueryColumn that represents the depth column of the embedded totals view associated with the MdmHierarchy . |
MdmQueryColumn |
getETParentColumn()
Gets the
MdmQueryColumn that represents the parent column of the embedded totals view associated with the MdmHierarchy . |
java.lang.String |
getETViewName()
Gets the name of the ET (Embedded Totals) view associated with the
MdmHierarchy . |
MdmAttribute |
getParentAttribute()
Gets the parent attribute for this
MdmHierarchy . |
Query |
getQuery()
Gets the
Query that is associated with the MdmHierarchy . |
MdmQueryColumn |
getQueryColumn(java.lang.String name)
Gets the specified
MdmQueryColumn . |
java.util.List<MdmQueryColumn> |
getQueryColumns()
Gets the
MdmQueryColumn objects that are associated with the MdmHierarchy . |
java.lang.String |
getQueryName()
Gets the identifier of the
MdmHierarchy . |
boolean |
isDefaultHierarchy()
Indicates whether this
MdmHierarchy is the default component of an MdmPrimaryDimension . |
abstract void |
setDefaultMember(MdmDimensionMemberInfo defaultMember)
Specifies a default member for this
MdmHierarchy . |
void |
setETViewName(java.lang.String name)
Specifies the ET (Embedded Totals) view to associate with the
MdmHierarchy . |
addAttribute, getAttributes, removeAttribute
getCardinality, getCustomOrder, getPluralDescription, getPrimaryDimension, getShortPluralDescription, setCardinality, setCustomOrder, setPluralDescription, setShortPluralDescription
getDataType, getSource, getType
acceptVisitor, addDescription, addObjectClassification, findOrCreateDescription, getDescription, getDescription, getDescription, getDescriptions, getMetadataProvider, getObjectClassifications, getShortDescription, isClassifiedAs, removeDescription, removeObjectClassification, setDescription, setDescription, setDescription, setName, setShortDescription
getContainedByObject, getID, getName, getNewName, getOwner
public MdmAttribute getAncestorsAttribute() throws oracle.express.mdm.MetadataNotFoundException
MdmHierarchy
. The ancestors attribute relates each member of this MdmHierarchy
to the members that are the ancestors of it in the hierarchy. For example, the ancestors for a given day in a time hierarchy might be month, quarter, and year. MdmAttribute
that is the ancestors attribute of this MdmHierarchy
.oracle.express.mdm.MetadataNotFoundException
public MdmAttribute getParentAttribute() throws oracle.express.mdm.MetadataNotFoundException
MdmHierarchy
. The parent attribute relates each member of this MdmHierarchy
to the parent of it. MdmAttribute
that is the parent attribute of this MdmHierarchy
.oracle.express.mdm.MetadataNotFoundException
public abstract MdmDimensionMemberInfo getDefaultMember() throws oracle.express.mdm.MetadataNotFoundException
MdmDimensionMemberInfo
that is associated with the default member of this MdmHierarchy
. You can get the value of the default member by calling the getLocalValue
or getUniqueValue
method of the MdmDimensionMemberInfo
.MdmDimensionMemberInfo
for the default member of this MdmHierarchy
.oracle.express.mdm.MetadataNotFoundException
public abstract void setDefaultMember(MdmDimensionMemberInfo defaultMember) throws oracle.express.mdm.MetadataNotFoundException, MdmInvalidValueException
MdmHierarchy
.defaultMember
- The MdmDimensionMemberInfo
that is associated with the dimension member that you want as the default member for this MdmHierarchy
.oracle.express.mdm.MetadataNotFoundException
MdmInvalidValueException
public final boolean isDefaultHierarchy()
MdmHierarchy
is the default component of an MdmPrimaryDimension
.boolean
that is true
if this is the default hierarchy or false
if it is not.public final java.lang.String getETViewName()
MdmHierarchy
.String
that contains the name of the ET view associated with the MdmHierarchy
.public final void setETViewName(java.lang.String name)
MdmHierarchy
.name
- A String
that contains the name of the ET view to associate with the MdmHierarchy
.public final MdmQueryColumn getETParentColumn()
MdmQueryColumn
that represents the parent column of the embedded totals view associated with the MdmHierarchy
.MdmQueryColumn
that represents the parent column of the embedded totals view.public final MdmQueryColumn getETDepthColumn()
MdmQueryColumn
that represents the depth column of the embedded totals view associated with the MdmHierarchy
.MdmQueryColumn
that represents the depth column of the embedded totals view.public final Query getQuery()
Query
that is associated with the MdmHierarchy
.public final java.lang.String getQueryName()
MdmHierarchy
.getQueryName
in interface MdmQuery
String
that contains the identifier of the MdmHierarchy
object.public java.util.List<MdmQueryColumn> getQueryColumns()
MdmQueryColumn
objects that are associated with the MdmHierarchy
.getQueryColumns
in interface MdmQuery
List
of the MdmQueryColumn
objects associated with the MdmHierarchy
.public MdmQueryColumn getQueryColumn(java.lang.String name)
MdmQueryColumn
.getQueryColumn
in interface MdmQuery
name
- A String
that contains the name of an MdmQueryColumn
.MdmQueryColumn
that has the specified name.