Examples of MdmAttribute


Examples of oracle.olapi.metadata.mdm.MdmAttribute

    // Get the Source for the short label attribute of the dimension.
    Source prodShortLabel = mdmTimeDim.getShortValueDescriptionAttribute()
                                      .getSource();
       
    // Get the parent relation from the hierarchy.
    MdmAttribute mdmTimeHierParentAttr = mdmTimeHier.getParentAttribute();
   
    Source prodHierParentAttr = mdmTimeHierParentAttr.getSource();
       
    // Reverse the parent relation to get a children relation.
    Source timeHierChildren = timeHier.join(prodHierParentAttr,
        timeHier.value());
       
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmAttribute

    // Get the Source for the short label attribute of the dimension.
    Source prodShortLabel = mdmProdDim.getShortValueDescriptionAttribute()
                                      .getSource();
       
    // Get the parent relation from the hierarchy.
    MdmAttribute mdmProdHierParentAttr = mdmProdHier.getParentAttribute();
   
    MdmAttribute mdmProdHierAncestAttr = mdmProdHier.getAncestorsAttribute();
   
   
    Source prodHierParentAttr = mdmProdHierParentAttr.getSource();
       
    // Get the ancestor relation from the hierarchy.
    MdmAttribute mdmProdHierAncsAttr = mdmProdHier.getAncestorsAttribute();
    Source prodHierAncsAttr = mdmProdHierAncsAttr.getSource();
       
    // Get ancestors of the level element.
    Source levelElementAncs = prodHierAncsAttr.join(prodHier, levelElement);
       
    // Get the parent of the level element.
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmAttribute

//          getContext().getHierarchyByName(dim, "DEPT");   

      StringSource mktSegment = (StringSource)hierarchy.getSource();

      // Get the ancestors attribute of the hierarchy and the Source for it.
      MdmAttribute mdmMarketSegmentAncestorsAttr =
        hierarchy.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.MdmAttribute

    StringSource custHier = (StringSource) mdmCustDim.getSource();
    StringSource chanHier = (StringSource) mdmChanHier.getSource();
   
    // Get the MdmAttribute for the short description attribute of the
    // Product dimension, and get the Source for the attribute.
    MdmAttribute mdmProdShortDescr =
                         mdmProdDim.getShortValueDescriptionAttribute();
    Source prodShortDescr = mdmProdShortDescr.getSource();
   
    //StringSource shipmentsHier = (StringSource) mdmCustDim.getSource();
    //StringSource calendarHier = (StringSource) mdmTimeDim.getSource();
   
    // Add the Source objects to a List to pass to the examples.
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmAttribute

  public MdmAttribute getAttributeByName(MdmPrimaryDimension mdmPDim,
      String name) {
    List mdmAttrs = mdmPDim.getAttributes();
    Iterator mdmAttrsItr = mdmAttrs.iterator();
    while (mdmAttrsItr.hasNext()) {
      MdmAttribute mdmAttr = (MdmAttribute) mdmAttrsItr.next();
      if (mdmAttr.getName().equals(name))
        return mdmAttr;
    }
    return null;
  }
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmAttribute

    // Get the DataProvider.
    ExpressDataProvider dp = getExpressDataProvider();
       
    // Get the short description attribute for the dimensions and the
    // Source objects for the attributes.
    MdmAttribute mdmProdShortDescr =
                              mdmProdDim.getShortValueDescriptionAttribute();
    Source prodShortDescr = mdmProdShortDescr.getSource();

    MdmAttribute mdmTimeShortDescr =
                              mdmTimeDim.getShortValueDescriptionAttribute();
    Source timeShortDescr = mdmTimeShortDescr.getSource();
   
    // Get the short description attribute for the channel dimension.
    MdmAttribute mdmChanShortDescr =
                              mdmChanDim.getShortValueDescriptionAttribute();
    Source chanShortDescr = mdmChanShortDescr.getSource();
       
    // Create Parameter objects with values from the CUSTOMER_AW and
    // PRODUCT_AW dimensions.
    StringParameter prodParam =
                new StringParameter(dp, "DEPT::DEPT::0");
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmAttribute

    Source custDim = mdmCustDim.getSource();
    StringSource shipments = (StringSource) mdmShipmentsHIer.getSource();
       
    // Get the parent attribute for the hierarchy and the value description
    // attribute for the dimension, and the Source objects for them.
    MdmAttribute mdmParentAttr = mdmShipmentsHIer.getParentAttribute();
    MdmAttribute mdmCustValDescAttr = mdmCustDim.getValueDescriptionAttribute();
    Source shipmentsParentAttr = mdmParentAttr.getSource();
    Source custValDescAttr = mdmCustValDescAttr.getSource();
   
    // Specify a parent value from the hierarchy.
    Source parentValue =
            shipments.selectValue("SHIPMENTS_AW::WAREHOUSE_AW::17");
   
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmAttribute

  {
    List mdmAttrs = mdmPDim.getAttributes();
    Iterator mdmAttrsItr = mdmAttrs.iterator();
    while(mdmAttrsItr.hasNext())
    {
      MdmAttribute mdmAttr = (MdmAttribute) mdmAttrsItr.next();
      if (mdmAttr.getName().equals(name))
          return mdmAttr;
    }
    return null;
  }
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmAttribute

                                           {"CALENDAR_YEAR_AW::MONTH_AW::58",
                                            "CALENDAR_YEAR_AW::MONTH_AW::59"});
                                 
    // Get the short description attributes for the dimensions and
    // get the Source objects for the attributes.
    MdmAttribute mdmProdShortDescr =
                               mdmProdDim.getShortValueDescriptionAttribute();
    MdmAttribute mdmTimeShortDescr =
                               mdmTimeDim.getShortValueDescriptionAttribute();
    Source prodShortDescr = mdmProdShortDescr.getSource();
    Source timeShortDescr = mdmTimeShortDescr.getSource();
                                 
    // Join the hierarchy selections to the short descriptions.
    Source prodSelShortDescr = prodShortDescr.join(prodSel);
    Source timeSelShortDescr = timeShortDescr.join(timeSel);
                                 
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmAttribute

    // 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();
    Source prodShortDescrAttr = mdmProdShortDescrAttr.getSource();
   
    // Create a SingleSelectionTemplate to produce a Source that
    // represents the measure values specified by single members of each of
    // the dimensions of the measure other than the base dimension.
    SingleSelectionTemplate singleSelections =
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.