Package ch.epfl.lbd.etl

Examples of ch.epfl.lbd.etl.XML


    String cubeString = ""+
    "<Cube name=\""+name+"\">"+
    "<Table name=\""+table.getTableName()+"\"/>"+
    "</Cube>";
   
    cubeDef = new XML(cubeString);
   
  }
View Full Code Here


   
    if(dim instanceof MondrianDimension){
      String nodeString = ""+
        "<DimensionUsage name=\""+dim.getName()+"\" source=\""+dim.getName()+"\" foreignKey=\""+foreignKey+"\"/>";
     
      XML node = new XML(nodeString);
      cubeDef.addToRootNode(node);
    }
    else{
      logger.error("Only MondrianDimension objects can be part of a MondrianCube object");
    }
View Full Code Here

        "<MeasureExpression>"+
          "<SQL dialect=\"generic\">("+sqlExpr+")</SQL>"+
        "</MeasureExpression>"+
      "</Measure>";
   
    measureDef = new XML(measureString);
  }
View Full Code Here

  public MondrianDataWarehouse(String owner, String schemaName){
    super(owner);
   
    String schemaDef = "<Schema name=\""+schemaName+"\"></Schema>";
   
    schema = new XML(schemaDef);
  }
View Full Code Here

          "name =\""+name+"\" "+
          "column =\""+column+"\" "+
          "uniqueMembers =\"false\">"+
        "</Level>";
   
    levelDef = new XML(levelString);
   
  }
View Full Code Here

    "<Property "+
      "name =\""+name+"\" "+
      "column  =\""+column+"\" "+
      "type =\""+typeToString(type)+"\"/>";
   
    propertyDef = new XML(propertyString);
  }
View Full Code Here

  public MondrianMeasure(String name, RelationalTable table, String column){
    super(name,table,column);
   
    String measureString = "" +
      "<Measure name=\""+name+"\" column=\""+column+"\" aggregator=\"sum\" datatype=\"Numeric\"/>";
    measureDef = new XML(measureString);
  }
View Full Code Here

    super(name,table,column,datatype,aggregation);
   
    String measureString = "" +
      "<Measure name=\""+name+"\" column=\""+column+"\" aggregator=\""+aggregationToString(aggregation)+"\" datatype=\""+dataTypeToString(datatype)+"\"/>";
   
    measureDef = new XML(measureString);
  }
View Full Code Here

   
    if(hierarchy == null)return;
   
    String levelString = "<Dimension name =\""+name+"\"/>";
   
    dimDef = new XML(levelString);
    if(hierarchy instanceof MondrianHierarchy){
      dimDef.addToRootNode(((MondrianHierarchy)hierarchy).addToMondrianSchema());
    }
    else
      logger.error("only Mondrian Hierarchy can be combined with MondrianDimension");
View Full Code Here

  protected void setHierarchy(Hierarchy hier){
    if(this.hierarchy == null){
      this.hierarchy = hier;
      String levelString = "<Dimension name =\""+name+"\"/>";
     
      dimDef = new XML(levelString);
      if(hierarchy instanceof MondrianHierarchy){
        dimDef.addToRootNode(((MondrianHierarchy)hierarchy).addToMondrianSchema());
      }
      else
        logger.error("only Mondrian Hierarchy can be combined with MondrianDimension");
View Full Code Here

TOP

Related Classes of ch.epfl.lbd.etl.XML

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.