Examples of MdmSchema


Examples of oracle.olapi.metadata.mdm.MdmSchema

     * From the lists, the method creates a hash map to store the names of the
     * dimensions and measures.
     */
  private Map loadHashMap()
  {
        MdmSchema schema = mp.getRootSchema();
    // Create an empty HashMap.
        Map map = new HashMap();
       
        boolean isGlobal = false;
        MdmSchema schemaToUse = null;
       
    if (getUser().toUpperCase().equals("GLOBAL_AW"))
    {
            isGlobal = true;
           
            List subSchemas = schema.getSubSchemas();
            Iterator subSchemasItr = subSchemas.iterator();
           
      while (subSchemasItr.hasNext())
      {
                schemaToUse = (MdmSchema) subSchemasItr.next();
        if (schemaToUse.getName().equals("GLOBALAW_SCHEMA"))
        {
                    schema = schemaToUse;
                    break;
                }
            }
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmSchema

   * objects and a list of MdmMeasure objects from the root MdmSchema. From
   * the lists, the method creates a hash map to store the names of the
   * dimensions and measures.
   */
  private Map loadHashMap() {
    MdmSchema schema = mp.getRootSchema();
    // Create an empty HashMap.
    Map map = new HashMap();

    boolean isGlobal = false;
    MdmSchema schemaToUse = null;

    if (getUser().toUpperCase().equals("GLOBAL_AW")) {
      isGlobal = true;

      List subSchemas = schema.getSubSchemas();
      Iterator subSchemasItr = subSchemas.iterator();

      while (subSchemasItr.hasNext()) {
        schemaToUse = (MdmSchema) subSchemasItr.next();
        if (schemaToUse.getName().equals("GLOBALAW_SCHEMA")) {
          schema = schemaToUse;
          break;
        }
      }

View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmSchema

  public static List getRootMeasureInfo() throws Exception{
    MyOlapContext context = MyOlapContext.getMyOlapContext();
    ExpressDataProvider dp = context.getExpressDataProvider();
    MdmMetadataProvider mp = null;
      mp = (MdmMetadataProvider) dp.getDefaultMetadataProvider();
      MdmSchema rootSchema = mp.getRootSchema();
//      MdmMeasureDimension mdmMeasureDim = (MdmMeasureDimension)rootSchema.getMeasureDimension();
//      List mdmMeasures = mdmMeasureDim.getMeasures();
      List mdmMeasures = rootSchema.getMeasures();
      Iterator mdmMeasuresIter = mdmMeasures.iterator();
      List<LazyDynaBean> result = new ArrayList<LazyDynaBean>();
      while (mdmMeasuresIter.hasNext()){
        LazyDynaBean bean = new LazyDynaBean();
        result.add(bean);
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmSchema

    // Get the Source objects for the hierarchies.
    StringSource prodHier = (StringSource) mdmProdPrimary.getSource();
    StringSource calendarYear = (StringSource) mdmCalendarYear.getSource();
       
    // Get the root MdmSchema.
    MdmSchema rootSchema = getMdmMetadataProvider().getRootSchema();
       
    // Get the MdmMeasureDimension of the root MdmSchema, and the Source for it.
    MdmMeasureDimension mdmMeasDim = rootSchema.getMeasureDimension();
    StringSource measDim = (StringSource) mdmMeasDim.getSource();
       
    // Specify a calculation for the custom measure.
    Source calculation = unitPrice.minus(unitCost);
       
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.