Examples of MdmMeasure


Examples of oracle.olapi.metadata.mdm.MdmMeasure

   
    // Get the DataProvider.
    DataProvider dp = getContext().getDataProvider();
   
    // Get the MdmMeasure objects and the Source objects for them.
    MdmMeasure mdmAmount = getMdmMeasure("AMOUNT");
    MdmMeasure mdmCOAL_EQUIVALENT = getMdmMeasure("COAL_EQUIVALENT");
       
//    NumberSource unitPrice = (NumberSource) mdmAmount.getSource();
//    NumberSource unitCost = (NumberSource) mdmCOAL_EQUIVALENT.getSource();
       
    // Get the MdmPrimaryDimension objects and the default hierarchies for them.
    MdmPrimaryDimension mdmDepartmentDim = getMdmPrimaryDimension("DEPARTMENT");
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("MYTIME");
    MdmPrimaryDimension mdmMediaDim = getMdmPrimaryDimension("MEDIA");
   
    MdmValueHierarchy mdmDepartmentRollup = (MdmValueHierarchy)
                                       mdmDepartmentDim.getDefaultHierarchy();
    MdmLevelHierarchy mdmCalendar = (MdmLevelHierarchy)
                                      mdmTimeDim.getDefaultHierarchy();
    MdmLevelHierarchy mdmMedia = (MdmLevelHierarchy)mdmMediaDim.getDefaultHierarchy();
   
    System.out.println(mdmAmount.getID()+":"+mdmAmount.getName());
    System.out.println(mdmCOAL_EQUIVALENT.getID()+":"+mdmCOAL_EQUIVALENT.getName());
   
    System.out.println(mdmDepartmentRollup.getID()+":"+mdmDepartmentRollup.getName());
    System.out.println(mdmCalendar.getID()+":"+mdmCalendar.getName());
    System.out.println(mdmMedia.getID()+":"+mdmMedia.getName());
   
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasure

    dp = getContext().getDataProvider();
   
    // Create the querySource object to use in the
    // 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();
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasure

    throws NotCommittableException
  {
    println("\nGetting ValueCursor Objects from a CompoundCursor");

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

Examples of oracle.olapi.metadata.mdm.MdmMeasure

  {
   // Get the DataProvider.
    dp = getContext().getDataProvider();
   
    // Get the MdmMeasure object for units sold.
    MdmMeasure mdmUnits = getMdmMeasure("UNITS_AW");
    // Get the Source for the measure.
    Source units = mdmUnits.getSource();
   
    // Get the MdmPrimaryDimension objects for the dimensions of
    // the measures.
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("TIME_AW");
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasure

  {
    println("\nLiteralQualification Example");
   
    // Get the metadata and source objects for a measure and the dimensions
    // of the measure. 
    MdmMeasure mdmUnitPrice = getMdmMeasure("UNIT_PRICE_AW");
    Source unitPrice = mdmUnitPrice.getSource();
 
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
    Source productDim = mdmProdDim.getSource();
   
    MdmLevelHierarchy mdmProdHier = (MdmLevelHierarchy)
                                     mdmProdDim.getDefaultHierarchy();
    StringSource prodHier = (StringSource) mdmProdDim.getSource();
   
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("TIME_AW");
    MdmLevelHierarchy mdmTimeHier = (MdmLevelHierarchy)
                                     mdmTimeDim.getDefaultHierarchy();
    StringSource timeHier = (StringSource) mdmTimeHier.getSource();
   
    // Select one member of each dimension.   
    Source timeSel = timeHier.selectValue("CALENDAR_YEAR_AW::YEAR_AW::4");   
    Source prodSel = prodHier.selectValue("PRODUCT_PRIMARY_AW::FAMILY_AW::7");
   
    // Join the dimension selections to the measure and display the result.
    Source result = unitPrice.join(prodSel)
                             .join(timeSel);
    getContext().commit();
    println("\nThe result without a Qualification is:");
    getContext().displayResult(result);
   
    // Get the MdmMeasureModel for the measure.
    MdmMeasureModel unitPriceModel =  (MdmMeasureModel) mdmUnitPrice.getModel();
   
    // Create the Qualification.
    // The code that appears in the LiteralQualification class description
    // has a non-existant dimension member and an incorrect assign method
    // signature.
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasure

      m_measureList = mDim.getMeasures();
    }

    objIter = m_measureList.iterator();

    MdmMeasure mdmMeasure = null;
    // Put the measures in the hash map.
    while (objIter.hasNext()) {
      mdmMeasure = (MdmMeasure) objIter.next();
      // Put upper case name of the measure into the hash map as the key
      // with the object as the value.
      map.put(mdmMeasure.getName().toUpperCase(), mdmMeasure);
    }

    return map;
  }
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasure

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

    MdmMeasure result = null;

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

Examples of oracle.olapi.metadata.mdm.MdmMeasure

    dp = getContext().getDataProvider();
   
    // Create the querySource object to use in the
    // Creating a Cursor example.

    MdmMeasure mdmAmount = getMdmMeasure("AMOUNT");
    MdmMeasure mdmSCC_Amount = getMdmMeasure("SCC_AMOUNT");
    Source amount = mdmAmount.getSource();
    Source scc_amount = mdmSCC_Amount.getSource();
   
    System.out.println(mdmAmount.getDescription());
   
    System.out.println(mdmSCC_Amount.getDescription());
   
//    oracle.olapi.data.source.NumberSource ss;
   
   
    MdmPrimaryDimension mdmDeptDim = getMdmPrimaryDimension("DEPARTMENT");
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasure

  protected void run() throws Exception
  {
    println("Creating a Cube and Pivoting Its Edges");
       
    // Get the MdmMeasure for units.
    MdmMeasure mdmUnits = getMdmMeasure("UNITS_AW");
    // Get the Source for the measure.
    Source units = mdmUnits.getSource();
       
    // Get the dimensions of the measure and the default hierarchies of
    // the dimensions.
       
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("DEPARTMENT");
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasure

                                     mdmProdStdDim.getDefaultHierarchy();
    StringSource calendar = (StringSource) mdmCalendar.getSource();
    StringSource prodHier = (StringSource) mdmProdPrimary.getSource();
       
    // Get the measures and the Source objects for them.
    MdmMeasure mdmUnitCost = getMdmMeasure("AMOUNT");
    MdmMeasure mdmUnitPrice = getMdmMeasure("SCC_AMOUNT");
       
    NumberSource unitCost = (NumberSource) mdmUnitCost.getSource();
    NumberSource unitPrice = (NumberSource) mdmUnitPrice.getSource();
   
    DataProvider dp = getContext().getDataProvider();
       
    // Get the placeholder Source for the Number data type.
    Source ph = dp.getFundamentalMetadataProvider().getNumberPlaceholder()
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.