Package org.saiku.service.util.exception

Examples of org.saiku.service.util.exception.SaikuServiceException


      final OlapConnection con = olapDiscoverService.getNativeConnection(getQuery(queryName).getCube().getConnection());
      stmt = con.createStatement();
      ResultSet rs = stmt.executeQuery(drillthroughMdx);
      return rs;
    } catch (SQLException e) {
      throw new SaikuServiceException("Error DRILLTHROUGH: " + queryName + " DRILLTHROUGH MDX:" + drillthroughMdx, e);
    } finally {
      try {
        if (stmt != null) {
          stmt.close();
        }
View Full Code Here


        mdx += "\r\n RETURN " + returns;
      }
      ResultSet rs = stmt.executeQuery(mdx);
      return rs;
    } catch (SQLException e) {
      throw new SaikuServiceException("Error DRILLTHROUGH: " + queryName, e);
    } finally {
      try {
        if (stmt != null) {
          stmt.close();
        }
View Full Code Here

      LOG.debug("Drill Through for query (" + queryName + ") : \r\n" + select);
      ResultSet rs = stmt.executeQuery(select);
      return rs;
    } catch (Exception e) {
      throw new SaikuServiceException("Error DRILLTHROUGH: " + queryName, e);
    } finally {
      try {
        if (stmt != null) {
          stmt.close();
        }
View Full Code Here

      }

      ResultSet rs = stmt.executeQuery(mdx);
      return CsvExporter.exportCsv(rs);
    } catch (SQLException e) {
      throw new SaikuServiceException("Error DRILLTHROUGH: " + queryName, e);
    } finally {
      try {
        if (stmt != null) {
          stmt.close();
        }
View Full Code Here

      AllocationPolicy ap = AllocationPolicy.valueOf(allocationPolicy);
      CellSet cs = query.getCellset();
      cs.getCell(position).setValue(v, ap);
      con.setScenario(null);
    } catch (Exception e) {
      throw new SaikuServiceException("Error setting value: " + queryName, e);
    }


  }
View Full Code Here

    try {
      Selection sel = dimension.createSelection(Operator.CHILDREN, memberList);
      dimension.getInclusions().add(sel);
      return true;
    } catch (OlapException e) {
      throw new SaikuServiceException(
          "Cannot include children query (" + queryName + ") dimension (" + dimensionName + ") member ("
          + uniqueMemberName + ")", e);
    }
  }
View Full Code Here

      if (dimension.getInclusions().contains(sel)) {
        dimension.getInclusions().remove(sel);
      }
      return true;
    } catch (OlapException e) {
      throw new SaikuServiceException(
          "Cannot remove children query (" + queryName + ") dimension (" + dimensionName + ") member ("
          + uniqueMemberName + ")", e);
    }
  }
View Full Code Here

        }
      }
      dimension.getInclusions().removeAll(children);
      return true;
    } catch (Exception e) {
      throw new SaikuServiceException(
          "Cannot remove all children  for query (" + queryName + ") dimension (" + dimensionName + ")", e);
    }
  }
View Full Code Here

      }
      dimension.getInclusions().add(memberposition, sel);
      query.setTotalFunction(((Member) sel.getRootElement()).getLevel().getUniqueName(), totalsFunction);
      return true;
    } catch (OlapException e) {
      throw new SaikuServiceException(
          "Cannot include member query (" + queryName + ") dimension (" + dimensionName + ") member ("
          + uniqueMemberName + ") operator (" + selectionType + ") position " + memberposition, e);
    }
  }
View Full Code Here

      }
      Selection selection = dimension.createSelection(selectionMode, memberList);
      dimension.getInclusions().remove(selection);
      return true;
    } catch (OlapException e) {
      throw new SaikuServiceException(
          "Error removing member (" + uniqueMemberName + ") of dimension (" + dimensionName + ")", e);
    }
  }
View Full Code Here

TOP

Related Classes of org.saiku.service.util.exception.SaikuServiceException

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.