Examples of CubeMapGroup


Examples of oracle.AWXML.CubeMapGroup

   * of the analytic workspace Cube.
   */
  public void createCubeMap(Cube _cube, Vector _levels, Vector _columns,
                            Vector _measures, Vector _measCols)
  {
    CubeMapGroup _cmg = _cube.createSourceCubeMapGroup();

    // Create the primary key in the fact table.
    for (int y=0; y < _levels.size(); y++)
    {
      CubeDimensionSourceExpression _cdse = _cmg.CreateKeyMap();
      _cdse.addLevel((Level)_levels.elementAt(y));

      // Loop through the associated comma delimited
      // FKey columns in the fact table.
      StringTokenizer _st =
                     new StringTokenizer((String)_columns.elementAt(y), "," );
      while (_st.hasMoreTokens())
      {
        SourceColumn _keycol = _cdse.CreateSourceColumn();
        _keycol.setColumn(_st.nextToken());
      }
    }

    for(int x=0; x < _measures.size(); x++)
    {
      Measure curMeasure = (Measure)_measures.elementAt(x);
      curMeasure.setAutoSolve("NO_AUTO_SOLVE");
      String  curMeascol = (String)_measCols.elementAt(x);
      MeasureSourceExpression _measMap = _cmg.CreateAttributeMap();
      _measMap.setTargetObject(curMeasure);
      SourceColumn _meascol = _measMap.CreateSourceColumn();
      _meascol.setColumn(curMeascol);
    }
  }
View Full Code Here

Examples of oracle.AWXML.CubeMapGroup

   * of the analytic workspace Cube.
   */
  public void createCubeMap(Cube _cube, Vector _levels, Vector _columns,
                            Vector _measures, Vector _measCols)
  {
    CubeMapGroup _cmg = _cube.createSourceCubeMapGroup();

    // Create the primary key in the fact table.
    for (int y=0; y < _levels.size(); y++)
    {
      CubeDimensionSourceExpression _cdse = _cmg.CreateKeyMap();
      _cdse.addLevel((Level)_levels.elementAt(y));

      // Loop through the associated comma delimited
      // FKey columns in the fact table.
      StringTokenizer _st =
                     new StringTokenizer((String)_columns.elementAt(y), "," );
      while (_st.hasMoreTokens())
      {
        SourceColumn _keycol = _cdse.CreateSourceColumn();
        _keycol.setColumn(_st.nextToken());
      }
    }

    for(int x=0; x < _measures.size(); x++)
    {
      Measure curMeasure = (Measure)_measures.elementAt(x);
      curMeasure.setAutoSolve("NO_AUTO_SOLVE");
      String  curMeascol = (String)_measCols.elementAt(x);
      MeasureSourceExpression _measMap = _cmg.CreateAttributeMap();
      _measMap.setTargetObject(curMeasure);
      SourceColumn _meascol = _measMap.CreateSourceColumn();
      _meascol.setColumn(curMeascol);
    }
  }
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.