Examples of MdmPrimaryDimension


Examples of oracle.olapi.metadata.mdm.MdmPrimaryDimension

   
    // Get the Source for the measure
    Source units = mdmUnits.getSource();
       
    // Get the dimensions and their default hierarchies.      
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
    MdmPrimaryDimension mdmCustDim = getMdmPrimaryDimension("CUSTOMER_AW");
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("TIME_AW");
    MdmPrimaryDimension mdmChanDim = getMdmPrimaryDimension("CHANNEL_AW");
       
    MdmLevelHierarchy mdmProdHier = (MdmLevelHierarchy)
                                        mdmProdDim.getDefaultHierarchy();
    MdmLevelHierarchy mdmShipHier = (MdmLevelHierarchy)
                                      mdmCustDim.getDefaultHierarchy();
    MdmLevelHierarchy mdmCalendar = (MdmLevelHierarchy)
                                     mdmTimeDim.getDefaultHierarchy();
    MdmLevelHierarchy mdmChanHier = (MdmLevelHierarchy)
                                       mdmChanDim.getDefaultHierarchy();
       
    // Get the short description attribute for the dimensions, and the
    // Source objects for the attributes.
    MdmAttribute mdmProdShortDescr =
                               mdmProdDim.getShortValueDescriptionAttribute();
    Source prodShortDescr = mdmProdShortDescr.getSource();
    MdmAttribute mdmCustShortDescr =
                               mdmCustDim.getShortValueDescriptionAttribute();
    Source custShortDescr = mdmCustShortDescr.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();
       
    // Get the Source objects for the default hierarchies of the dimensions
    // of the measures
    Source prodHier = mdmProdHier.getSource();
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmPrimaryDimension

    println("\nMatching the Inputs of a Measure and Producing Outputs");
       
    MdmMeasure mdmUnits = getMdmMeasure("UNITS_AW");
    Source units = mdmUnits.getSource();

    MdmPrimaryDimension mdmChanDim = getMdmPrimaryDimension("CHANNEL_AW");
    MdmPrimaryDimension mdmCustDim = getMdmPrimaryDimension("CUSTOMER_AW");
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("TIME_AW");
           
    MdmLevelHierarchy mdmChanHier = (MdmLevelHierarchy)
                                     mdmChanDim.getDefaultHierarchy();
    MdmLevelHierarchy mdmShipHier = (MdmLevelHierarchy)
                                     mdmCustDim.getDefaultHierarchy();
    MdmLevelHierarchy mdmProdHier = (MdmLevelHierarchy)
                                     mdmProdDim.getDefaultHierarchy();
    MdmLevelHierarchy mdmCalendar = (MdmLevelHierarchy)
                                     mdmTimeDim.getDefaultHierarchy();
       
    Source chanHier = mdmChanHier.getSource();
    Source shipHier = mdmShipHier.getSource();
    Source prodHier = mdmProdHier.getSource();
    Source calendar = mdmCalendar.getSource();
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmPrimaryDimension

   
    // Get the dimensions. Cast the MdmPrimaryDimension for the Product dimension
    // as an MdmStandardDimension so it has a createCustomMember method.
    MdmStandardDimension mdmProdStdDim = (MdmStandardDimension)
                                          getMdmPrimaryDimension("PRODUCT_AW");
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("TIME_AW");
       
    // 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 prodPrimary = (StringSource) mdmProdPrimary.getSource();
       
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmPrimaryDimension

   
  protected void run() throws Exception
  {
    println("Getting the Data Type of a Source\n");
       
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
       
    FundamentalMetadataObject fmoStringDataType =
                     getFundamentalMetadataProvider().getStringDataType();
    Source stringDataTypeSource = fmoStringDataType.getSource();
    FundamentalMetadataObject fmoMdmProdDimDataType = mdmProdDim.getDataType();
    Source mdmProdDimDataTypeSource = fmoMdmProdDimDataType.getSource();
    Source prodDim = mdmProdDim.getSource();
    Source prodDimDataTypeSource = prodDim.getDataType();
    if(stringDataTypeSource == prodDimDataTypeSource &&
       mdmProdDimDataTypeSource == prodDimDataTypeSource)
    {
      println("The Source objects for the data types are the same.");
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmPrimaryDimension

public class OlapService {
 
  public static List getTimeDimensionTree() throws Exception{
    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);
      MdmAttribute mdmTimeHierParentAttr = mdmTimeHier.getParentAttribute();
      Source prodHierParentAttr = mdmTimeHierParentAttr.getSource();
      Source timeHierChildren = timeHier.join(prodHierParentAttr,
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmPrimaryDimension

    }
    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);
    }
    for(int i=HierarchySelectedList.size()-1;i>=0;i--){
      measureSource = measureSource.join(HierarchySelectedList.get(i));
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmPrimaryDimension

  }
   
  protected void run() throws Exception
  {
  System.out.println("Departments:");
    MdmPrimaryDimension mdmDeptDim = getMdmPrimaryDimension("DEPARTMENT");
       
    MdmValueHierarchy mdmDeptHier = (MdmValueHierarchy)
                                     mdmDeptDim.getDefaultHierarchy();
   
    getAllDecendents(mdmDeptDim,mdmDeptHier,"DEPT::1",false);
   
    System.out.println("Media:");
    MdmPrimaryDimension mdmMediaDim = getMdmPrimaryDimension("MEDIA");
   
    MdmLevelHierarchy mdmMediaHier = (MdmLevelHierarchy)
                                     mdmMediaDim.getDefaultHierarchy();
   
    getAllDecendents(mdmMediaDim,mdmMediaHier,"MEDIAHIER::ALL_MEDIA::ALL_MEDIA_0",true);
   
   
    System.out.println("Time:");   
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("MYTIME");
   
    MdmLevelHierarchy mdmTimeHier = (MdmLevelHierarchy)
                                     mdmTimeDim.getDefaultHierarchy();
    getAllDecendents(mdmTimeDim,mdmTimeHier,"TIMEHIER::MONTH::MONTH_2011-M01",false);
       
  }
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmPrimaryDimension

    throws Exception
  {
    println("\nUsing the distinct Method");

    // 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();
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmPrimaryDimension

    throws Exception
  {
    println("\nUsing COMPARISON_RULE_REMOVE");

    // 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");
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmPrimaryDimension

    // Get the UNIT_PRICE_AW measure and the Source for it.
    MdmMeasure mdmUnitPrice = getMdmMeasure("UNIT_PRICE_AW");
    NumberSource unitPrice = (NumberSource) mdmUnitPrice.getSource();

    // Get the PRODUCT and TIME dimensions.
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("TIME_AW");

    // Get the short description attribute for the dimensions.
    MdmAttribute mdmProdShortDescrAttr =
                mdmProdDim.getShortValueDescriptionAttribute();
    MdmAttribute mdmTimeShortDescrAttr =
                mdmTimeDim.getShortValueDescriptionAttribute();

    // Get the Source objects for the attributes.
    Source prodShortDescr = mdmProdShortDescrAttr.getSource();
    Source timeShortDescr = mdmTimeShortDescrAttr.getSource();

    // Get the default hierarchies of the dimensions and their Source objects.
    MdmLevelHierarchy mdmProdHier = (MdmLevelHierarchy)
                                     mdmProdDim.getDefaultHierarchy();
    MdmLevelHierarchy mdmTimeHIer = (MdmLevelHierarchy)
                                     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 =
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.