Examples of MdmPrimaryDimension


Examples of oracle.olapi.metadata.mdm.MdmPrimaryDimension

  public MdmPrimaryDimension getMdmPrimaryDimensionByName(String name) {
    // If the hash map has not been created yet, then create it.
    if (m_hashMap == null)
      m_hashMap = loadHashMap();

    MdmPrimaryDimension result = null;

    // If the hash map load succeeded, then get the dimension.
    if (m_hashMap != null) {
      // Loop over the names.
      String val = name.toUpperCase();
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmPrimaryDimension

    System.out.println(mdmSCC_Amount.getDescription());
   
//    oracle.olapi.data.source.NumberSource ss;
   
   
    MdmPrimaryDimension mdmDeptDim = getMdmPrimaryDimension("DEPARTMENT");
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("MYTIME");
    MdmPrimaryDimension mdmMediaDim = getMdmPrimaryDimension("MEDIA");
   
    MdmValueHierarchy mdmDeptHier = (MdmValueHierarchy)
                                     mdmDeptDim.getDefaultHierarchy();
    MdmLevelHierarchy mdmTimeHier = (MdmLevelHierarchy)
                                     mdmTimeDim.getDefaultHierarchy();
   
    MdmLevelHierarchy mdmMediaHier = (MdmLevelHierarchy)mdmMediaDim.getDefaultHierarchy();

    // Get the Source for the hierarchy.

//    Source valueSource = mdmDeptHier.getSource();
   
   
    StringSource prodHier = (StringSource) mdmDeptHier.getSource();
    StringSource timeHier = (StringSource) mdmTimeHier.getSource();
    StringSource mediaHier = (StringSource) mdmMediaHier.getSource();
   
   
//    MdmAttribute mdmDeptAttr = getContext().getAttributeByName(mdmDeptDim,"SHORT_DESCRIPTION");
//    Source mktMngrAttr = mdmDeptAttr.getSource();
//    MdmLevel mdmItemLevel = getContext().getLevelByName(mdmDeptHier, "ITEM_AW");
//    Source prodForManager = mdmDeptHier.join(mdmDeptAttr, "一炼");
   
    Source prodSel = prodHier.selectValues(new String[] {
                                           "DEPT::0"
                        ,
                                           "DEPT::1",
                                           "DEPT::2"
                                           });

    Source timeSel = timeHier.selectValues(new String[] {
                                           "TIMEHIER::MONTH::MONTH_2011-M01"
                        ,
                                           "TIMEHIER::DAY::DAY_20110102",
                                           "TIMEHIER::DAY::DAY_20110103"
                                           });

    Source mediaSel = mediaHier.selectValues(new String[] {
            "MEDIAHIER::MEDIA::MEDIA_0"
        ,
            "MEDIAHIER::MEDIA::MEDIA_1",
            "MEDIAHIER::MEDIA::MEDIA_2"
            });
   
   
    Source depShortLabel = mdmDeptDim.getShortValueDescriptionAttribute().getSource();
    Source mediaShortLabel = mdmMediaDim.getShortValueDescriptionAttribute().getSource();
    Source timeShortLabel = mdmTimeDim.getShortValueDescriptionAttribute().getSource();
   
    Source deptShortDescr = depShortLabel.join(prodSel);
   
    Source mediaShortDescr = mediaShortLabel.join(mediaSel);
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmPrimaryDimension

    Source units = mdmUnits.getSource();
       
    // Get the dimensions of the measure and the default hierarchies of
    // the dimensions.
       
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("DEPARTMENT");
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("MYTIME");
    MdmPrimaryDimension mdmChanDim = getMdmPrimaryDimension("MEDIA");
       
    MdmValueHierarchy mdmProdDefLvlHier = (MdmValueHierarchy)
                                           mdmProdDim.getDefaultHierarchy();
       
    MdmLevelHierarchy mdmTimeDefLvlHier = (MdmLevelHierarchy)
                                           mdmTimeDim.getDefaultHierarchy();
       
    MdmLevelHierarchy mdmChanDefLvlHier = (MdmLevelHierarchy)
                                            mdmChanDim.getDefaultHierarchy();
       
    // Get the Source objects for the hierarchies.
    StringSource prodHier = (StringSource) mdmProdDefLvlHier.getSource();
    StringSource timeHier = (StringSource) mdmTimeDefLvlHier.getSource();
    StringSource chanHier = (StringSource) mdmChanDefLvlHier.getSource();
       
    // 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 =
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmPrimaryDimension

  protected void run() throws Exception
  {
    // Get the Dimension objects.
    MdmStandardDimension mdmProdStdDim =
                (MdmStandardDimension) getMdmPrimaryDimension("MEDIA");
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("MYTIME");
       
    // Get the Source for the Product dimension.
    Source prodStdDim = mdmProdStdDim.getSource();
       
    // Get the default hierarchies of the dimensions and the Source objects for
    // them.
    MdmLevelHierarchy mdmCalendar = (MdmLevelHierarchy)
                                     mdmTimeDim.getDefaultHierarchy();
    MdmLevelHierarchy mdmProdPrimary = (MdmLevelHierarchy)
                                     mdmProdStdDim.getDefaultHierarchy();
    StringSource calendar = (StringSource) mdmCalendar.getSource();
    StringSource prodHier = (StringSource) mdmProdPrimary.getSource();
       
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmPrimaryDimension

  public void run() throws Exception
  {
    // Get the MdmPrimaryDimension for the CUSTOMER_AW dimension,
    // the MdmLevelHierarchy for the SHIPMENTS hierarchy of that
    // dimension, and the Source objects for them.
    MdmPrimaryDimension mdmCustDim = getMdmPrimaryDimension("CUSTOMER_AW");
    MdmLevelHierarchy mdmShipmentsHIer = (MdmLevelHierarchy)
    getContext().getHierarchyByName(mdmCustDim, "SHIPMENTS_AW");
    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 =
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmPrimaryDimension

        }
       
    // Get the dimension list.
        m_dimensionList = schema.getDimensions();
        Iterator objIter = m_dimensionList.iterator();
        MdmPrimaryDimension mdmPDim = null;
       
    // Get the dimensions and put them in the hash map.
    while (objIter.hasNext())
    {
            mdmPDim = (MdmPrimaryDimension) objIter.next();
      // Put the upper case name of the dimension into the hash map as the key
      // with the object as the value.
            map.put(mdmPDim.getName().toUpperCase(), mdmPDim);
        }
       
    // Get the measure list.
    if (isGlobal)
    {
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmPrimaryDimension

    // Creating a Cursor example.

    MdmMeasure mdmUnitPrice = getMdmMeasure("UNIT_PRICE_AW");
    Source unitPrice = mdmUnitPrice.getSource();

    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("TIME_AW");
    MdmLevelHierarchy mdmProdHier = (MdmLevelHierarchy)
                                     mdmProdDim.getDefaultHierarchy();
    MdmLevelHierarchy mdmTimeHier = (MdmLevelHierarchy)
                                     mdmTimeDim.getDefaultHierarchy();

    // Get the Source for the hierarchy.
    StringSource prodHier = (StringSource) mdmProdHier.getSource();
    StringSource timeHier = (StringSource) mdmTimeHier.getSource();
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmPrimaryDimension

    // Get the metadata objects.
    MdmMeasure mdmUnits = getMdmMeasure("UNITS_AW");
    NumberSource units = (NumberSource) mdmUnits.getSource();

    MdmPrimaryDimension mdmChanDim = getMdmPrimaryDimension("CHANNEL_AW");
    MdmPrimaryDimension mdmCustDim = getMdmPrimaryDimension("CUSTOMER_AW");
    MdmLevelHierarchy mdmChanHier = (MdmLevelHierarchy)
                                     mdmChanDim.getDefaultHierarchy();
    MdmLevelHierarchy mdmCustHier = (MdmLevelHierarchy)
                                     mdmCustDim.getDefaultHierarchy();

    StringSource chanHier = (StringSource) mdmChanHier.getSource();
    StringSource custHier = (StringSource) mdmCustHier.getSource();

    Source chanSel = chanHier.selectValue("CHANNEL_PRIMARY_AW::CHANNEL_AW::2");
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmPrimaryDimension

    // Create a parameterized Source.
    StringSource measParamSrc = dp.createParameterizedSource(measParam);
               
    // Get the metadata objects and the Source objects for the dimensions of
    // the measures.
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("TIME_AW");
    MdmLevelHierarchy mdmProdHier = (MdmLevelHierarchy)
                                     mdmProdDim.getDefaultHierarchy();
    MdmLevelHierarchy mdmTimeHier = (MdmLevelHierarchy)
                                     mdmTimeDim.getDefaultHierarchy();
    StringSource prodHier = (StringSource) mdmProdDim.getSource();
    StringSource timeHier = (StringSource) mdmTimeHier.getSource();
               
    // Select elements from the hierarchies.
    Source prodSel = prodHier.selectValues(new String[]
                                        {"PRODUCT_PRIMARY_AW::ITEM_AW::13",
                                         "PRODUCT_PRIMARY_AW::ITEM_AW::14"});
                        
    Source timeSel = timeHier.selectValues(new String[]
                                           {"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);
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmPrimaryDimension

    // Get the Sources for the measures.
    Source units = mdmUnits.getSource();
    Source sales = mdmSales.getSource();
       
    // Get the MdmPrimaryDimension objects for the dimensions of the measure.
    MdmPrimaryDimension mdmCustDim = getMdmPrimaryDimension("CUSTOMER_AW");
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
    MdmPrimaryDimension mdmChanDim = getMdmPrimaryDimension("CHANNEL_AW");
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("TIME_AW");
     
    // Get the default hierarchy of the Product dimension.
    MdmLevelHierarchy mdmProdHier = (MdmLevelHierarchy)
                                     mdmProdDim.getDefaultHierarchy();
   
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.