// Get the MdmPrimaryDimension objects and the default hierarchies for them.
MdmPrimaryDimension mdmDepartmentDim = getMdmPrimaryDimension("DEPARTMENT");
MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("MYTIME");
MdmPrimaryDimension mdmMediaDim = getMdmPrimaryDimension("MEDIA");
MdmValueHierarchy mdmDepartmentRollup = (MdmValueHierarchy)
mdmDepartmentDim.getDefaultHierarchy();
MdmLevelHierarchy mdmCalendar = (MdmLevelHierarchy)
mdmTimeDim.getDefaultHierarchy();
MdmLevelHierarchy mdmMedia = (MdmLevelHierarchy)mdmMediaDim.getDefaultHierarchy();
System.out.println(mdmAmount.getID()+":"+mdmAmount.getName());
System.out.println(mdmCOAL_EQUIVALENT.getID()+":"+mdmCOAL_EQUIVALENT.getName());
System.out.println(mdmDepartmentRollup.getID()+":"+mdmDepartmentRollup.getName());
System.out.println(mdmCalendar.getID()+":"+mdmCalendar.getName());
System.out.println(mdmMedia.getID()+":"+mdmMedia.getName());
/**
* 选择维度这儿是正确的
*/
// Get the Source objects for the hierarchies.
StringSource departmentRollup = (StringSource) mdmDepartmentRollup.getSource();
StringSource calendar = (StringSource) mdmCalendar.getSource();
// Create a Source that represents a selection of Product dimension members.
Source prodSel = departmentRollup.selectValues(new String[]
{"DEPARTMENT::0",