Package oracle.AWXML

Examples of oracle.AWXML.SourceColumn


      // 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


        HierarchyLevelAssociation _hla = _hier.createHierarchyLevelAssociation();
        _hla.setLevel(_curLev);

        DimensionMapGroup _dmg = _hla.createSourceDimensionMapGroup();
        DimensionKeySourceExpression _dkse = _dmg.CreateKeyMap();
        SourceColumn _levColumn = _dkse.CreateSourceColumn();
        _levColumn.setColumn((String)columns.elementAt(i));

        // The first level has no parent.
        // Each subsequent level does have a parent.
        // The first element in the Vector must be the top-most level.
        if (i > 0)
        {
          HierarchicalParentSourceExpression _hpse = _dmg.CreateParentMap();
          SourceColumn _hpsesc = _hpse.CreateSourceColumn();
          _hpsesc.setColumn((String)columns.elementAt(i-1));
        }
        i++;
      }
    }
View Full Code Here

    DimensionMapGroup _dmg = _lev.createSourceDimensionMapGroup();
    DimensionKeySourceExpression _key = _dmg.CreateKeyMap();

    for (int y=0; y < _keys.size(); y++)
    {
      SourceColumn _keycol = _key.CreateSourceColumn();
      _keycol.setColumn((String)_keys.elementAt(y));
    }

    // Map the columns of the relational tables or views to the
    // AttributeProjection objects.
    int i = 0;
    for(Iterator attrs = _lev.getAttributes().iterator(); attrs.hasNext();)
    {
      AttributeProjection _curAttr = (AttributeProjection)attrs.next();
      AttributeSourceExpression _attrMap = _dmg.CreateAttributeMap();
      _attrMap.setTargetObject(_curAttr);
      SourceColumn _attrCol = _attrMap.CreateSourceColumn();
      _attrCol.setColumn((String)_columns.elementAt(i));
      i++;
    }
  }
View Full Code Here

      // 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

        HierarchyLevelAssociation _hla = _hier.createHierarchyLevelAssociation();
        _hla.setLevel(_curLev);

        DimensionMapGroup _dmg = _hla.createSourceDimensionMapGroup();
        DimensionKeySourceExpression _dkse = _dmg.CreateKeyMap();
        SourceColumn _levColumn = _dkse.CreateSourceColumn();
        _levColumn.setColumn((String)columns.elementAt(i));

        // The first level has no parent.
        // Each subsequent level does have a parent.
        // The first element in the Vector must be the top-most level.
        if (i > 0)
        {
          HierarchicalParentSourceExpression _hpse = _dmg.CreateParentMap();
          SourceColumn _hpsesc = _hpse.CreateSourceColumn();
          _hpsesc.setColumn((String)columns.elementAt(i-1));
        }
        i++;
      }
    }
View Full Code Here

    DimensionMapGroup _dmg = _lev.createSourceDimensionMapGroup();
    DimensionKeySourceExpression _key = _dmg.CreateKeyMap();

    for (int y=0; y < _keys.size(); y++)
    {
      SourceColumn _keycol = _key.CreateSourceColumn();
      _keycol.setColumn((String)_keys.elementAt(y));
    }

    // Map the columns of the relational tables or views to the
    // AttributeProjection objects.
    int i = 0;
    for(Iterator attrs = _lev.getAttributes().iterator(); attrs.hasNext();)
    {
      AttributeProjection _curAttr = (AttributeProjection)attrs.next();
      AttributeSourceExpression _attrMap = _dmg.CreateAttributeMap();
      _attrMap.setTargetObject(_curAttr);
      SourceColumn _attrCol = _attrMap.CreateSourceColumn();
      _attrCol.setColumn((String)_columns.elementAt(i));
      i++;
    }
  }
View Full Code Here

TOP

Related Classes of oracle.AWXML.SourceColumn

Copyright © 2018 www.massapicom. 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.