Examples of CruxException


Examples of co.nubetech.crux.util.CruxException

      transaction.begin();
      session.saveOrUpdate(analysis);
      transaction.commit();
    } catch (JDBCException e) {
      transaction.rollback();
      throw new CruxException(e.getSQLException().getMessage(), e);
    }

    return analysis.getId();
 
View Full Code Here

Examples of co.nubetech.crux.util.CruxException

      logger.debug("Execute returning the scanner " + scanner);
      return scanner;     
    } catch (Exception e) {
      e.printStackTrace();
     
      throw new CruxException(e);
    } finally {
      if (hTablePool != null) {
        try {
          if (hTable != null) {
            hTablePool.putTable(hTable);
          }
          hbaseConnectionPool.returnObject(conn, hTablePool);
        } catch (Exception e1) {
          // TODO Auto-generated catch block
          e1.printStackTrace();
          throw new CruxException(e1);
        }
      }
     
    }
View Full Code Here

Examples of co.nubetech.crux.util.CruxException

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

Examples of co.nubetech.crux.util.CruxException

      logger.debug("Id to find connection is: " + id);
      connection = (Connection) session.get(Connection.class, id);
      connection.getId();
    } catch (NullPointerException e) {
      logger.debug(id + " not exists.");
      throw new CruxException(
          "Selected connection does not exists in the database.", e);
    }
    return connection;
  }
View Full Code Here

Examples of co.nubetech.crux.util.CruxException

      transaction.begin();
      session.saveOrUpdate(connection);
      transaction.commit();
    } catch (JDBCException e) {
      transaction.rollback();
      throw new CruxException(e.getSQLException().getMessage(), e);
    }

    return connection.getId();
  }
View Full Code Here

Examples of co.nubetech.crux.util.CruxException

      transaction.begin();
      session.delete(connection);
      transaction.commit();
    } catch (JDBCException e) {
      transaction.rollback();
      throw new CruxException(
          "This connection is associated with mappings. Please delete them first.",
          e);
    }
    return id;
  }
View Full Code Here

Examples of co.nubetech.crux.util.CruxException

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

Examples of co.nubetech.crux.util.CruxException

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

Examples of co.nubetech.crux.util.CruxException

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

Examples of co.nubetech.crux.util.CruxException

      transaction.begin();
      session.delete(rowAlias);
      transaction.commit();
    } catch (JDBCException e) {
      transaction.rollback();
      throw new CruxException(e.getSQLException().getMessage(), e);
    }
    return id;
  }
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.