Examples of DBException


Examples of org.h2.message.DbException

    private static DbException getExceptionFatal(String reason, Throwable t) {
        return DbException.get(ErrorCode.ERROR_OPENING_DATABASE_1, t, reason);
    }

    private DbException getExceptionAlreadyInUse(String reason) {
        DbException e = DbException.get(ErrorCode.DATABASE_ALREADY_OPEN_1, reason);
        if (fileName != null) {
            try {
                Properties prop = load();
                String server = prop.getProperty("server");
                if (server != null) {
                    String serverId = server + "/" + prop.getProperty("id");
                    e = e.addSQL(serverId);
                }
            } catch (DbException e2) {
                // ignore
            }
        }
View Full Code Here

Examples of org.iq80.leveldb.DBException

    try {
      iter.seek(key);
    } catch (DBException e) {
      throw e;
    } catch (RuntimeException e) {
      throw new DBException(e.getMessage(), e);
    }
  }
View Full Code Here

Examples of org.javalite.activejdbc.DBException

    public String formSelect(String tableName, String subQuery, List<String> orderBys, long limit, long offset) {
        boolean needLimit = limit != -1;
        boolean needOffset = offset != -1;
       
        if(needOffset && (orderBys == null || orderBys.isEmpty())) {
          throw new DBException("MSSQL offset queries require an order by column.");
        }

        boolean keepSelect = false;
        StringBuilder fullQuery = new StringBuilder();
        if (needOffset) {
View Full Code Here

Examples of org.jeecgframework.web.cgform.exception.DBException

      result = cgfromcolumnMeta.getColumnName()+" type  decimal("+cgfromcolumnMeta.getColumnSize()+","+cgfromcolumnMeta.getDecimalDigits()+")"+" ";
    }else if(cgfromcolumnMeta.getColunmType().equalsIgnoreCase("text")){
      result = cgfromcolumnMeta.getColumnName()+"  type text("+cgfromcolumnMeta.getColumnSize()+")"+" ";
    }else if(cgfromcolumnMeta.getColunmType().equalsIgnoreCase("blob")){
//      bytea类型不可修改,修改会报错
      throw new DBException("blob类型不可修改");
    }
    return result;
  }
View Full Code Here

Examples of org.lealone.message.DbException

    public void replace(String querySQL, String[] columnNames, Session session, boolean recursive, boolean force) {
        String oldQuerySQL = this.querySQL;
        String[] oldColumnNames = this.columnNames;
        boolean oldRecursive = this.recursive;
        init(querySQL, null, columnNames, session, recursive);
        DbException e = recompile(session, force);
        if (e != null) {
            init(oldQuerySQL, null, oldColumnNames, session, oldRecursive);
            recompile(session, true);
            throw e;
        }
View Full Code Here

Examples of org.sd_network.db.DBException

                        rs.getString("login_name"),
                        rs.getBoolean("is_admin"));
            }
            return user;
        } catch (SQLException e) {
            throw new DBException(e);
        } finally {
            try {
                if (con != null)
                    con.close();
            } catch (SQLException e) {
View Full Code Here

Examples of xbird.storage.DbException

            HashBucket bucket = loadRecordedBucket(pageNum);
            if(bucket != null) {
                return bucket.findValue(key);
            }
        } catch (IOException e) {
            throw new DbException(e);
        }
        return null;
    }
View Full Code Here

Examples of xbird.storage.DbException

        try {
            checkOpened();
            HashBucket bucket = seekInsertionBucket(key);
            return bucket.addValue(key, value);
        } catch (IOException e) {
            throw new DbException(e);
        }
    }
View Full Code Here

Examples of xbird.storage.DbException

                PageHeader ph = p.getPageHeader();
                if(ph.getStatus() == USED_BUCKET) {
                    try {
                        bucket.read();
                    } catch (IOException e) {
                        throw new DbException(e);
                    }
                } else {
                    ph.setStatus(USED_BUCKET);
                }
                _cache.put(pageNum, bucket);
View Full Code Here

Examples of xbird.storage.DbException

            HashBucket bucket = loadRecordedBucket(pageNum);
            if(bucket != null) {
                return bucket.removeValue(key);
            }
        } catch (IOException e) {
            throw new DbException(e);
        }
        return null;
    }
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.