Examples of MdmLevel


Examples of oracle.olapi.metadata.mdm.MdmLevel

    MdmLevelHierarchy mdmProdHier = (MdmLevelHierarchy)
                                     mdmProdDim.getDefaultHierarchy();
    StringSource prodHier =  (StringSource) mdmProdHier.getSource();
       
    // Get one of the levels of the hierachy.
    MdmLevel mdmLevel = getContext().getLevelByName(mdmProdHier, "MEDIA");
       
    Source levelSrc = mdmLevel.getSource();
       
    int pos = 1;
    Source levelElement = levelSrc.at(pos);
       
    // Use levelElement as the comparison to select a level value.
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmLevel

  public MdmLevel getLevelByName(MdmLevelHierarchy mdmLvlHier,
      String levelName) {
    List mdmLevels = mdmLvlHier.getLevels();
    Iterator mdmLevelsItr = mdmLevels.iterator();
    while (mdmLevelsItr.hasNext()) {
      MdmLevel mdmLevel = (MdmLevel) mdmLevelsItr.next();
      if ((mdmLevel.getName()).equals(levelName))
        return mdmLevel;
    }
    return null;
  }
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmLevel

  {
        List mdmLevels = mdmLvlHier.getLevels();
        Iterator mdmLevelsItr = mdmLevels.iterator();
    while (mdmLevelsItr.hasNext())
    {
            MdmLevel mdmLevel = (MdmLevel) mdmLevelsItr.next();
            if ((mdmLevel.getName()).equals(levelName))
                return mdmLevel;
        }
        return null;
    }
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmLevel

    // Get the default hierarchy of the Product dimension.
    MdmLevelHierarchy mdmProdHier = (MdmLevelHierarchy)
                                     mdmProdDim.getDefaultHierarchy();
   
    // Get the detail level of the hierarchy.
    MdmLevel mdmItemLevel = getContext().getLevelByName(mdmProdHier, "ITEM_AW");
   
    // Get the Source for the level.
    Source itemLevel = mdmItemLevel.getSource();
   
    // Get the short description attribute for the Product dimension and
    // the Source for the attribute.
    MdmAttribute mdmProdShortDescrAttr =
                           mdmProdDim.getShortValueDescriptionAttribute();
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmLevel

    Source ph = dp.getFundamentalMetadataProvider()
                  .getNumberPlaceholder()
                  .getSource();
   
    // Get the level to which the dimension members belong.
    MdmLevel mdmItemLevel = getContext().getLevelByName(mdmProdHier,
                                                        "ITEM_AW");

    // Get the Source for the ITEM level.
    Source itemLevel = mdmItemLevel.getSource();
   
    // Select the members of the level that are managed by a marketing manager.
    Source prodForManager = itemLevel.join(mktMngrAttr, "Jackson");
   
    // Get the short value description attribute for Product and the Source
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmLevel

       
    NumberSource unitCost = (NumberSource) mdmUnitCost.getSource();
    NumberSource unitPrice = (NumberSource) mdmUnitPrice.getSource();
       
    // Get the level to which the dimension members belong.
    MdmLevel mdmItemLevel = getContext().getLevelByName(mdmProdPrimary,
                                                        "ITEM_AW");
       
    // Get the placeholder Source for the Number data type.
    Source ph = dp.getFundamentalMetadataProvider()
                  .getNumberPlaceholder()
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmLevel

    MyOlapContext context = MyOlapContext.getMyOlapContext();
    MdmPrimaryDimension mdmTimeDim = context.getMdmPrimaryDimension("MYTIME");
      MdmLevelHierarchy mdmTimeHier = (MdmLevelHierarchy)mdmTimeDim.getDefaultHierarchy();
//      StringSource prodHier =  (StringSource) mdmProdHier.getSource();

      MdmLevel mdmLevel = context.getLevelByName(mdmTimeHier, "YEAR");
      Source levelSrc = mdmLevel.getSource();
      StringSource timeHier = (StringSource) mdmTimeHier.getSource();
      // Get the Source for the short label attribute of the dimension.
      Source prodShortLabel = mdmTimeDim.getShortValueDescriptionAttribute()
                                        .getSource();
      Source levelSrcWithShortDescr = prodShortLabel.join(levelSrc);
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmLevel

                                     mdmTimeDim.getDefaultHierarchy();
    Source prodHier = mdmProdHier.getSource();
    StringSource timeHier = (StringSource) mdmTimeHIer.getSource();

    // Get the FAMILY level of the hierarchy and the Source for it.
      MdmLevel mdmFamilyLevel =
                     getContext().getLevelByName(mdmProdHier, "FAMILY_AW");
      Source prodSel = mdmFamilyLevel.getSource();

    // Join the family elements to the product short description attribute.
    Source prodSelWithShortDescr = prodShortDescr.join(prodSel);

    // Select the May, 2001.
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmLevel

    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("TIME_AW");
    MdmLevelHierarchy mdmTimeHier = (MdmLevelHierarchy)
                                     mdmTimeDim.getDefaultHierarchy();
    StringSource timeHier = (StringSource) mdmTimeHier.getSource();

    MdmLevel mdmQuarterLevel = getContext().getLevelByName(mdmTimeHier,
                                                           "QUARTER_AW");
    Source quarterLevel = mdmQuarterLevel.getSource();

    NumberSource unitPriceMovingTotal =
                                       unitPrice.movingTotal(mdmTimeHier, 0, 3);

View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmLevel

  protected void run() throws Exception
  {
    MdmPrimaryDimension mdmCustDim = getMdmPrimaryDimension("CUSTOMER_AW");
    MdmLevelHierarchy mdmShipmentsHier = (MdmLevelHierarchy)
    getContext().getHierarchyByName(mdmCustDim, "SHIPMENTS_AW");
    MdmLevel mdmWarehouse =
              getContext().getLevelByName(mdmShipmentsHier, "WAREHOUSE_AW");
       
    println("Getting the Type of an MdmSource.");
       
    // The following line is the code from the example.
    MetadataObject mdmWarehouseType = mdmWarehouse.getType();
       
    println(mdmWarehouseType.getID());
  }
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.