Package org.olap4j.metadata

Examples of org.olap4j.metadata.Catalog


    }
    try {
      // ok seems like we failed to get the cube, lets try it differently
      if (connection != null && mdx != null && mdx.length() > 0) {
        for (Database db : connection.getOlapDatabases()) {
          Catalog cat = db.getCatalogs().get(cube.getCatalog());
          if (cat != null) {
            for (Schema schema : cat.getSchemas()) {
              for (Cube cub : schema.getCubes()) {
                if (cub.getName().equals(cube.getName()) || cub.getUniqueName().equals(cube.getName())) {
                  return cub;
                }
              }
View Full Code Here


      String mdx = getMdx();

      LOG.trace("Executing query (" + this.getName() + ") :\n" + mdx);

      final Catalog catalog = query.getCube().getSchema().getCatalog();
      this.connection.setCatalog(catalog.getName());
      OlapStatement stmt = connection.createStatement();
      this.statement = stmt;
      CellSet cellSet = stmt.executeOlapQuery(mdx);
      if (scenario != null && query.getDimension(SCENARIO) != null) {
        QueryDimension dimension = query.getDimension(SCENARIO);
View Full Code Here

TOP

Related Classes of org.olap4j.metadata.Catalog

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.