Examples of MdmMeasure


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

  {
        // 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();
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.
    DataProvider dp = getContext().getDataProvider();
   
    // Get the MdmMeasure objects for unit cost and price.
    MdmMeasure mdmUnitCost = getMdmMeasure("UNIT_COST_AW");
    MdmMeasure mdmUnitPrice = getMdmMeasure("UNIT_PRICE_AW");
    // Get the Source for the measure
    Source unitCost = mdmUnitCost.getSource();
    Source unitPrice = mdmUnitPrice.getSource();
       
    // Create a measure dimension.
    Source measDim = dp.createListSource(new Source[] {unitCost, unitPrice});
               
    // Get the unique identifiers of the Source objects for the measures.
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasure

  {
    ExpressDataProvider dp = getExpressDataProvider();
    TransactionProvider tp = getTransactionProvider();
       
    // Get the MdmMeasure for the measure.
    MdmMeasure mdmUnits = getMdmMeasure("UNITS_AW");
    MdmMeasure mdmSales = getMdmMeasure("SALES_AW");
       
    // 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");
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasure

   
    // Get the DataProvider.
    DataProvider dp = getContext().getDataProvider();
   
    // Get the Sales measure and the Source for it.
     MdmMeasure mdmSales = getMdmMeasure("SALES_AW");
     NumberSource sales = (NumberSource) mdmSales.getSource();
   
    // Get the dimensions. Cast the Product dimension as an MdmStandardDimension
    // so that it has a createCustomMember method.
    MdmStandardDimension mdmProdStdDim = (MdmStandardDimension)
    getMdmPrimaryDimension("PRODUCT_AW");
View Full Code Here

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 mdmUnitPrice = getMdmMeasure("UNIT_PRICE_AW");
    MdmMeasure mdmUnitCost = getMdmMeasure("UNIT_COST_AW");
       
    NumberSource unitPrice = (NumberSource) mdmUnitPrice.getSource();
    NumberSource unitCost = (NumberSource) mdmUnitCost.getSource();
       
    // Get the MdmPrimaryDimension objects and the default hierarchies for them.
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("TIME_AW");
       
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasure

  private void matchingSourcesToInputs()
      throws Exception
  {
    println("\nUsing the join method to match Source objects to input");
       
    MdmMeasure mdmUnitCost = getMdmMeasure("UNIT_COST_AW");
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("TIME_AW");
    MdmLevelHierarchy mdmProdHier = (MdmLevelHierarchy)
                                        mdmProdDim.getDefaultHierarchy();
    MdmLevelHierarchy mdmCalendar = (MdmLevelHierarchy)
                                        mdmTimeDim.getDefaultHierarchy();
       
    Source unitCost = mdmUnitCost.getSource();
    Source calendar = mdmCalendar.getSource();
    Source prodHier = mdmProdHier.getSource();
    Source timeSel = calendar.join(calendar.value(),
                                   getExpressDataProvider().createListSource(
                                     new String[]
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasure

  private void usingShortcuts()
       throws Exception
  {
    println("\nUsing Shortcuts");
       
    MdmMeasure mdmUnitCost = getMdmMeasure("UNIT_COST_AW");
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("TIME_AW");
    MdmLevelHierarchy mdmProdHier = (MdmLevelHierarchy)
                                     mdmProdDim.getDefaultHierarchy();
    MdmLevelHierarchy mdmCalendar = (MdmLevelHierarchy)
                                     mdmTimeDim.getDefaultHierarchy();
       
    Source unitCost = mdmUnitCost.getSource();
    StringSource calendar = (StringSource) mdmCalendar.getSource();
    StringSource prodHier = (StringSource) mdmProdHier.getSource();
    Source timeSel = calendar.selectValues(new String[]
                                            {"CALENDAR_YEAR_AW::MONTH_AW::47",
                                             "CALENDAR_YEAR_AW::MONTH_AW::59"});
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.