Examples of MdmHierarchy


Examples of oracle.olapi.metadata.mdm.MdmHierarchy

      String name) {
//    System.out.println("begin getHierarchyByName");
    List mdmHiers = mdmPDim.getHierarchies();
    Iterator mdmHierItr = mdmHiers.iterator();
    while (mdmHierItr.hasNext()) {
      MdmHierarchy mdmHier = (MdmHierarchy) mdmHierItr.next();
//      System.out.println(mdmHier.getName());
      if (mdmHier.getName().equals(name))
        return mdmHier;
    }
//    System.out.println("end getHierarchyByName");
    return null;
  }
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmHierarchy

  {
        List mdmHiers = mdmPDim.getHierarchies();
        Iterator mdmHierItr = mdmHiers.iterator();
    while (mdmHierItr.hasNext())
    {
            MdmHierarchy mdmHier = (MdmHierarchy) mdmHierItr.next();
            if (mdmHier.getName().equals(name))
                return mdmHier;
        }
        return null;
    }
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmHierarchy

      Iterator dimMemberInfosItr = castState.dimMemberInfos.iterator();
      while (dimMemberInfosItr.hasNext())
      {
        MdmDimensionMemberInfo mdmDimMemInfo = (MdmDimensionMemberInfo)
                                                dimMemberInfosItr.next();
        MdmHierarchy mdmHier = mdmDimMemInfo.getHierarchy();
        StringSource hierSrc = (StringSource) mdmHier.getSource();
        Source memberSel = hierSrc.selectValue(mdmDimMemInfo.getUniqueValue());
       
        // Join the Source objects for the selected dimension members
        // to the measure.
        result = result.joinHidden(memberSel);
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmHierarchy

                                            mdmDimMemInfoListItr.next();
      MdmPrimaryDimension mdmPrimDim = mdmDimMemInfo.getPrimaryDimension();
      MdmAttribute mdmShortDescrAttr =
                          mdmPrimDim.getShortValueDescriptionAttribute();
      Source shortDescrAttr = mdmShortDescrAttr.getSource();
      MdmHierarchy mdmHier = mdmDimMemInfo.getHierarchy();
      StringSource hierSrc = (StringSource) mdmHier.getSource();
      Source memberSel = hierSrc.selectValue(mdmDimMemInfo.getUniqueValue());
      Source shortDescrForMember = shortDescrAttr.joinHidden(memberSel);
           
      // Prepare and commit the current transaction.
      try
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmHierarchy

                                           "PRODUCT_PRIMARY_AW::FAMILY_AW::7",
                                           "PRODUCT_PRIMARY_AW::FAMILY_AW::8"});
                
                
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
    MdmHierarchy mdmProdHier = mdmProdDim.getDefaultHierarchy();
    StringSource prodHier = (StringSource) mdmProdHier.getSource();
                
    // Selecting values using the selectValues shortcut.
    Source prodSel = prodHier.selectValues(myList);
    if (prodSel.isSubtypeOf(prodHier))
      println("prodSel is a subtype of prodHier.");
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmHierarchy

     throws Exception
  {
    println("\nMatching the base Source to an input of the joined Source");
       
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
    MdmHierarchy mdmProdHier = mdmProdDim.getDefaultHierarchy();
    StringSource prodHier = (StringSource) mdmProdHier.getSource();
       
    Source myList = getExpressDataProvider().createListSource(new String[]
                                          {"PRODUCT_PRIMARY_AW::FAMILY_AW::4",
                                           "PRODUCT_PRIMARY_AW::FAMILY_AW::5",
                                           "PRODUCT_PRIMARY_AW::FAMILY_AW::7",
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmHierarchy

    Source measureSource = mdmMeasure.getSource();
   
    ArrayList<Source> HierarchySelectedList = new ArrayList<Source>();
    for(String dimensionName:dimensionNames){
      MdmPrimaryDimension mdmDim = context.getMdmPrimaryDimension(dimensionName);
      MdmHierarchy mdmHier = mdmDim.getDefaultHierarchy();
      StringSource hier = (StringSource)mdmHier.getSource();
      Source selected = hier.selectValues(dimensionList.get(dimensionName));
      Source depShortLabel = mdmDim.getShortValueDescriptionAttribute().getSource();
      Source deptShortDescr = depShortLabel.join(selected);
      HierarchySelectedList.add(deptShortDescr);
    }
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmHierarchy

    // Get the CUSTOMER_AW dimension.
    MdmPrimaryDimension mdmCustDim = getMdmPrimaryDimension("CUSTOMER_AW");

    // Get the MARKET_SEGMENT_AW  hierarchy of the dimension and the Source for it.
    MdmHierarchy mdmMarketSegment =
          getContext().getHierarchyByName(mdmCustDim, "MARKET_SEGMENT_AW");
    StringSource mktSegment = (StringSource)mdmMarketSegment.getSource();

    // Get the ancestors attribute of the hierarchy and the Source for it.
    MdmAttribute mdmMarketSegmentAncestorsAttr =
                                    mdmMarketSegment.getAncestorsAttribute();
    Source mktSegmentAncestors = mdmMarketSegmentAncestorsAttr.getSource();

    // Reverse the ancestors relation to get the descendants relation.
    Source mktSegmentDescendants =
              mktSegment.join(mktSegmentAncestors, mktSegment.value());
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmHierarchy

    // Get the CUSTOMER_AW dimension.
    MdmPrimaryDimension mdmCustDim = getMdmPrimaryDimension("CUSTOMER_AW");

    // Get the MARKET_SEGMENT_AW  hierarchy of the dimension and the Source
    // for it.
    MdmHierarchy mdmMarketSegment =
             getContext().getHierarchyByName(mdmCustDim, "MARKET_SEGMENT_AW");
    StringSource mktSegment = (StringSource)mdmMarketSegment.getSource();

    // Get the ancestors attribute of the hierarchy and the Source for it.
    MdmAttribute mdmMarketSegmentAncestorsAttr =
                                     mdmMarketSegment.getAncestorsAttribute();
    Source mktSegmentAncestors = mdmMarketSegmentAncestorsAttr.getSource();

    // Reverse the ancestors relation to get the descendants relation.
    Source mktSegmentDescendants =
              mktSegment.join(mktSegmentAncestors, mktSegment.value());
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmHierarchy

    // Get the CUSTOMER_AW dimension.
    MdmPrimaryDimension mdmCustDim = getMdmPrimaryDimension("CUSTOMER_AW");

    // Get the default hierarchy of the dimension and the parent attribute
    // of the hierarchy.
    MdmHierarchy mdmShipments = mdmCustDim.getDefaultHierarchy();

    // Get the Source for the hierarchy.
    StringSource shipments = (StringSource) mdmShipments.getSource();

    // Select some elements of the hierarchy.
    StringSource custSel = (StringSource) shipments.selectValues(new String[]
                                             {"SHIPMENTS_AW::SHIP_TO_AW::60",
                                              "SHIPMENTS_AW::SHIP_TO_AW::61",
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.