Package co.nubetech.crux.util

Examples of co.nubetech.crux.util.CruxException


        Double dbl = (Double) value;
        return Math.ceil(dbl);
      }
    } catch (Exception e) {
      e.printStackTrace();
      throw new CruxException(e.getMessage());
    }
  }
View Full Code Here


      else {
        Double dbl = (Double) value;
        return Math.round(dbl);
      }
    } catch (Exception e) {
      throw new CruxException(e.getMessage());
    }
  }
View Full Code Here

      transaction.begin();
      session.saveOrUpdate(connectionProperty);
      transaction.commit();
    } catch (JDBCException e) {
      transaction.rollback();
      throw new CruxException(e.getSQLException().getMessage(), e);
    }
    return connectionProperty.getId();
  }
View Full Code Here

      transaction.begin();
      session.delete(connectionProperty);
      transaction.commit();
    } catch (JDBCException e) {
      transaction.rollback();
      throw new CruxException(e.getSQLException().getMessage(), e);
    }
    return id;
  }
View Full Code Here

        typeString = typeString.replace(" ", "");
        typeString = typeString.toUpperCase();
        logger.debug("Return type is " + typeString);
        return typeString;
      } else {
        throw new CruxException(
            "Null filter type can not be converted to HBase filter");
      }
    } else {
      throw new CruxException(
          "Null filter type can not be converted to HBase filter");

    }
  }
View Full Code Here

    if (filter != null) {
      if (CompareOp.EQUAL.equals(getCompareOp(filter.getFilterType()))) {
        isEqual = true;
      }
    } else {
      throw new CruxException("Filter is null");
    }
    return isEqual;
  }
View Full Code Here

      transaction.begin();
      session.saveOrUpdate(dashboard);
      transaction.commit();
    } catch (JDBCException e) {
      transaction.rollback();
      throw new CruxException(e.getSQLException().getMessage(), e);
    }
    return dashboard.getId();
  }
View Full Code Here

    try {
      groupBys = (GroupBys) session.get(GroupBys.class, id);
      groupBys.getId();
    }
    catch (NullPointerException e) {
      throw new CruxException(
          "Selected GroupBys does not exist in the database.", e);
    }
    return groupBys;
  }
View Full Code Here

      groupBys.getReport().setGroupBys(null);
      session.delete(groupBys);
      transaction.commit();
    } catch (JDBCException e) {
      transaction.rollback();
      throw new CruxException(
          "The groupBys could not be deleted ",
          e);
    }
    return id;
  }
View Full Code Here

      session.saveOrUpdate(groupBys);
      transaction.commit();
    }
    catch (JDBCException e) {
      transaction.rollback();
      throw new CruxException(
          "Could not save GroupBys",
          e);
    }
    return groupBys.getId();
  }
View Full Code Here

TOP

Related Classes of co.nubetech.crux.util.CruxException

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.