Package org.openrdf.sail.rdbms.exceptions

Examples of org.openrdf.sail.rdbms.exceptions.RdbmsException


      } catch (SQLException e) {
        stmt.close();
        throw e;
      }
    } catch (SQLException e) {
      throw new RdbmsException(e);
    }

  }
View Full Code Here


      if (total > 0) {
        sailChangedEvent.setStatementsRemoved(true);
      }
      return total;
    } catch (SQLException e) {
      throw new RdbmsException(e);
    }
  }
View Full Code Here

      setCountQuery(stmt, ctxs);
      ResultSet rs = stmt.executeQuery();
      try {
        if (rs.next())
          return rs.getLong(1);
        throw new RdbmsException("Could not determine size");
      } finally {
        rs.close();
      }
    } finally {
      stmt.close();
View Full Code Here

  {
    try {
      Class.forName("com.mysql.jdbc.Driver");
    }
    catch (ClassNotFoundException e) {
      throw new RdbmsException(e.toString(), e);
    }
    StringBuilder url = new StringBuilder();
    url.append("jdbc:mysql:");
    if (serverName != null) {
      url.append("//").append(serverName);
View Full Code Here

    return vf.getRdbmsResource(id, rs.getString(0 + 2));
  }

  @Override
  protected RdbmsException convertSQLException(SQLException e) {
    return new RdbmsException(e);
  }
View Full Code Here

    return new RdbmsStatement(subj, pred, obj, explicit, ctx);
  }

  @Override
  protected RdbmsException convertSQLException(SQLException e) {
    return new RdbmsException(e);
  }
View Full Code Here

      for (Resource context : contexts) {     
        triples.add(vf.createStatement(subj, pred, obj, explicit, context));
      }
    } catch (SQLException e) {
      throw new RdbmsException(e);
    }
    catch (InterruptedException e) {
      throw new RdbmsException(e);
    }
  }
View Full Code Here

  @Override
  protected void closeInternal() throws SailException {
    try {
      triples.close();
    } catch (SQLException e) {
      throw new RdbmsException(e);
    } finally {
      unlock();
    }
  }
View Full Code Here

    List <RdbmsStatement> committedStatements = null;
    try {
       committedStatements = triples.commit();
      unlock();
    } catch (SQLException e) {
      throw new RdbmsException(e);
    }
    catch (InterruptedException e) {
      throw new RdbmsException(e);
    }

    if (hasConnectionListeners()) {
      for (Statement st : committedStatements)
        notifyStatementAdded(st);
View Full Code Here

  protected RdbmsResourceIteration getContextIDsInternal()
      throws SailException {
    try {
      return triples.findContexts();
    } catch (SQLException e) {
      throw new RdbmsException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.openrdf.sail.rdbms.exceptions.RdbmsException

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.