Package oracle.AWXML

Examples of oracle.AWXML.DimensionMapGroup


      {
        Level _curLev = (Level)_lev.next();
        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


   * a relational table.
   */
  public void createLevelMap(Level _lev, Vector _keys, Vector _columns)
  {
    // Map the keys of the relational table to the level.
    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

      {
        Level _curLev = (Level)_lev.next();
        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

   * a relational table.
   */
  public void createLevelMap(Level _lev, Vector _keys, Vector _columns)
  {
    // Map the keys of the relational table to the level.
    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.DimensionMapGroup

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.