Examples of DBException


Examples of com.sleepycat.db.DbException

                    if (oldValues != null) {
                        oldValues.add(cursor.getCurrentValue());
                    }
                    err = cursor.delete();
                    if (err != 0)
                        throw new DbException(
                            "Unexpected error on delete", err);
                }
            }
        } finally {
            if (cursor != null) {
View Full Code Here

Examples of com.spoledge.audao.db.dao.DBException

            return fetch( q, params );
        }
        catch (JDOException e) {
            errorSql( e, sql, params );

            throw new DBException( e );
        }
        finally {
            if (q != null) q.closeAll();
        }
    }
View Full Code Here

Examples of com.yahoo.ycsb.DBException

        _columnFamily = getProperties().getProperty("columnfamily");
        if (_columnFamily == null)
        {
            System.err.println("Error, must specify a columnfamily for HBase table");
            throw new DBException("No columnfamily specified");
        }
      _columnFamilyBytes = Bytes.toBytes(_columnFamily);

    }
View Full Code Here

Examples of me.z80.mongodb.DBException

      List<DBObject> objects = new ArrayList<DBObject>(beans.size());
      for(Message bean : beans)
      {
        if (exists(bean.getGuid()))
        {
          throw new DBException("Message with GUID: "+bean.getGuid()
              + " already exists");
        }
        objects.add(generateDoc(bean));
      }
View Full Code Here

Examples of net.sf.voruta.DbException

                server = home.create();
            } finally {
                initialContext.close();
            }
        }catch(Exception e){
            throw new DbException(e);
        }
    }
View Full Code Here

Examples of nz.co.abrahams.asithappens.core.DBException

            success = statement.executeUpdate() == 1;
            statement.close();
            return success;
        } catch (SQLException e) {
            logger.error("Problem adding heading " + name + " for session " + sessionID);
            throw new DBException("Problem adding heading " + name + " for session " + sessionID, e);
        }
    }
View Full Code Here

Examples of nz.co.abrahams.asithappens.core.DBException

            results.close();
            statement.close();
            return headings;
        } catch (SQLException e) {
            logger.error("Problem retrieving headings for session " + sessionID);
            throw new DBException("Problem retrieving headings for session " + sessionID, e);
        }
    }
View Full Code Here

Examples of nz.co.abrahams.asithappens.core.DBException

    public void closeConnection() throws DBException {
        try {
            connection.close();
        } catch (SQLException e) {
            logger.error("Error closing database connection for DataHeadings DAO");
            throw new DBException("Error closing database connection for DataHeadings DAO", e);
        }
    }
View Full Code Here

Examples of nz.co.abrahams.asithappens.core.DBException

            }
           
            return graphID;
        } catch (SQLException e) {
            logger.error("Problem creating data graph in database");
            throw new DBException("Problem creating data graph in database", e);
        }
    }
View Full Code Here

Examples of nz.co.abrahams.asithappens.core.DBException

            results = statement.executeQuery();
            */
           
        } catch (SQLException e) {
            logger.error("Problem updating data graph in database");
            throw new DBException("Problem updating data graph in database", e);
        }
       
    }
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.