Examples of SaikuCubeCaptionComparator


Examples of org.saiku.olap.util.SaikuCubeCaptionComparator

            for (Cube cub : schem.getCubes()) {
              cubes.add(
                  new SaikuCube(connectionName, cub.getUniqueName(), cub.getName(), cub.getCaption(), cat.getName(),
                      schem.getName(), cub.isVisible()));
            }
            Collections.sort(cubes, new SaikuCubeCaptionComparator());
            schemas.add(new SaikuSchema(schem.getName(), cubes));
          }
          if (schemas.size() == 0) {
            OlapDatabaseMetaData olapDbMeta = olapcon.getMetaData();
            ResultSet cubesResult = olapDbMeta.getCubes(cat.getName(), null, null);

            try {
              List<SaikuCube> cubes = new ArrayList<SaikuCube>();
              while (cubesResult.next()) {

                cubes.add(new SaikuCube(connectionName, cubesResult.getString("CUBE_NAME"),
                    cubesResult.getString("CUBE_NAME"),
                    cubesResult.getString("CUBE_NAME"), cubesResult.getString("CATALOG_NAME"),
                    cubesResult.getString("SCHEMA_NAME")));

              }
              Collections.sort(cubes, new SaikuCubeCaptionComparator());
              schemas.add(new SaikuSchema("", cubes));
            } catch (SQLException e) {
              throw new OlapException(e.getMessage(), e);
            } finally {
              try {
View Full Code Here

Examples of org.saiku.olap.util.SaikuCubeCaptionComparator

        }
      } catch (OlapException e) {
        LOG.error("Olap Exception", e.getCause());
      }
    }
    Collections.sort(cubes, new SaikuCubeCaptionComparator());
    return cubes;

  }
View Full Code Here

Examples of org.saiku.olap.util.SaikuCubeCaptionComparator

  public List<SaikuCube> getCubes(@NotNull List<String> connectionNames) throws SaikuOlapException {
    List<SaikuCube> cubesList = new ArrayList<SaikuCube>();
    for (String connectionName : connectionNames) {
      cubesList.addAll(getCubes(connectionName));
    }
    Collections.sort(cubesList, new SaikuCubeCaptionComparator());
    return cubesList;
  }
View Full Code Here

Examples of org.saiku.olap.util.SaikuCubeCaptionComparator

  public List<SaikuCube> getAllCubes() throws SaikuOlapException {
    List<SaikuCube> cubes = new ArrayList<SaikuCube>();
    for (String connectionName : connections.getAllOlapConnections().keySet()) {
      cubes.addAll(getCubes(connectionName));
    }
    Collections.sort(cubes, new SaikuCubeCaptionComparator());
    return cubes;
  }
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.