public final class MdmValueHierarchy extends MdmHierarchy
MdmHierarchy
that represents members of an Oracle OLAP dimension that are organized hierarchically by values rather than by levels. An application creates an MdmValueHierarchy
with the findOrCreateValueHierarchy
method of an MdmPrimaryDimension
.
The hierarchical organization is defined by parent-child relationships between the members of the MdmValueHierarchy
. For example, the employee reporting structure of a company can be represented with parent-child relationships but without levels.
To map an MdmValueHierarchy
to a data source, you use a SolvedValueHierarchyMap
. You specify the children of the hierarchy with the setKeyExpression
method of the SolvedValueHierarchyMap
and you specify the parents with the setParentKeyExpression
method.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
acceptVisitor(MdmObjectVisitor visitor, java.lang.Object context)
Calls the
visitMdmValueHierarchy method on the specified MdmObjectVisitor and passes that method this MdmValueHierarchy and the specified context object. |
SolvedValueHierarchyMap |
findOrCreateSolvedValueHierarchyMap()
Gets the
SolvedValueHierarchyMap that is contained by this MdmValueHierarchy or creates a new SolvedValueHierarchyMap if one does not already exist. |
MdmDimensionMemberInfo |
getDefaultMember()
Gets the
MdmDimensionMemberInfo that specifies the default member of this MdmValueHierarchy . |
SolvedValueHierarchyMap |
getSolvedHierarchyMap()
Gets the
SolvedValueHierarchyMap that is contained by this MdmValueHierarchy . |
void |
setDefaultMember(MdmDimensionMemberInfo defaultMember)
Specifies a default member for this
MdmValueHierarchy . |
void |
setSolvedHierarchyMap(SolvedValueHierarchyMap map)
Specifies a
SolvedValueHierarchyMap for this MdmValueHierarchy . |
getAncestorsAttribute, getETDepthColumn, getETParentColumn, getETViewName, getParentAttribute, getQuery, getQueryColumn, getQueryColumns, getQueryName, isDefaultHierarchy, setETViewName
addAttribute, getAttributes, removeAttribute
getCardinality, getCustomOrder, getPluralDescription, getPrimaryDimension, getShortPluralDescription, setCardinality, setCustomOrder, setPluralDescription, setShortPluralDescription
getDataType, getSource, getType
addDescription, addObjectClassification, findOrCreateDescription, getDescription, getDescription, getDescription, getDescriptions, getMetadataProvider, getObjectClassifications, getShortDescription, isClassifiedAs, removeDescription, removeObjectClassification, setDescription, setDescription, setDescription, setName, setShortDescription
getContainedByObject, getID, getName, getNewName, getOwner
public java.lang.Object acceptVisitor(MdmObjectVisitor visitor, java.lang.Object context)
visitMdmValueHierarchy
method on the specified MdmObjectVisitor
and passes that method this MdmValueHierarchy
and the specified context
object.acceptVisitor
in class MdmObject
visitor
- An MdmObjectVisitor
.context
- An Object
.Object
returned by the visitMdmValueHierarchy
method.public MdmDimensionMemberInfo getDefaultMember() throws oracle.express.mdm.MetadataNotFoundException
MdmDimensionMemberInfo
that specifies the default member of this MdmValueHierarchy
. From the MdmDimensionMemberInfo
you can get the value of the default member by calling its getLocalValue
or getUniqueValue
method.getDefaultMember
in class MdmHierarchy
MdmDimensionMemberInfo
that has the default member of this MdmValueHierarchy
.oracle.express.mdm.MetadataNotFoundException
public void setDefaultMember(MdmDimensionMemberInfo defaultMember) throws oracle.express.mdm.MetadataNotFoundException, MdmInvalidValueException
MdmValueHierarchy
.setDefaultMember
in class MdmHierarchy
defaultMember
- An MdmDimensionMemberInfo
that has the value that you want the default member of this MdmValueHierarchy
to have.oracle.express.mdm.MetadataNotFoundException
MdmInvalidValueException
public final SolvedValueHierarchyMap getSolvedHierarchyMap()
SolvedValueHierarchyMap
that is contained by this MdmValueHierarchy
.SolvedValueHierarchyMap
for this MdmValueHierarchy
.public final void setSolvedHierarchyMap(SolvedValueHierarchyMap map)
SolvedValueHierarchyMap
for this MdmValueHierarchy
.map
- The SolvedValueHierarchyMap
for this MdmValueHierarchy
.public SolvedValueHierarchyMap findOrCreateSolvedValueHierarchyMap()
SolvedValueHierarchyMap
that is contained by this MdmValueHierarchy
or creates a new SolvedValueHierarchyMap
if one does not already exist.SolvedValueHierarchyMap
for this MdmValueHierarchy
.