Package org.openrdf.sail.rdbms.exceptions

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


      try {
        BNode impl = vf.createBNode(nodeID);
        resource = new RdbmsBNode(impl);
        bnodes.cache(resource);
      } catch (SQLException e) {
        throw new RdbmsRuntimeException(e);
      } catch (InterruptedException e) {
        throw new RdbmsRuntimeException(e);
      }
    }
    return resource;
  }
View Full Code Here


      try {
        URI impl = vf.createURI(uri);
        resource = new RdbmsURI(impl);
        uris.cache(resource);
      } catch (SQLException e) {
        throw new RdbmsRuntimeException(e);
      } catch (InterruptedException e) {
        throw new RdbmsRuntimeException(e);
      }
    }
    return resource;
  }
View Full Code Here

    if (node instanceof RdbmsBNode) {
      try {
        bnodes.cache((RdbmsBNode) node);
        return (RdbmsBNode) node;
      } catch (SQLException e) {
        throw new RdbmsRuntimeException(e);
      } catch (InterruptedException e) {
        throw new RdbmsRuntimeException(e);
      }
    }
    return createBNode(((BNode) node).getID());
  }
View Full Code Here

    if (uri instanceof RdbmsURI) {
      try {
        uris.cache((RdbmsURI) uri);
        return (RdbmsURI) uri;
      } catch (SQLException e) {
        throw new RdbmsRuntimeException(e);
      } catch (InterruptedException e) {
        throw new RdbmsRuntimeException(e);
      }
    }
    return createURI(uri.stringValue());
  }
View Full Code Here

        lit = new RdbmsLiteral(literal, predicate);
        literals.cache(lit);
      }
      return lit;
    } catch (SQLException e) {
      throw new RdbmsRuntimeException(e);
    } catch (InterruptedException e) {
      throw new RdbmsRuntimeException(e);
    }
  }
View Full Code Here

      return literals.getInternalId((RdbmsLiteral)value);
    }
    catch (SQLException e) {
      throw new RdbmsException(e);
    } catch (InterruptedException e) {
      throw new RdbmsRuntimeException(e);
    }
  }
View Full Code Here

    try {
      return predicates.getIdOfPredicate(predicate);
    } catch (SQLException e) {
      throw new RdbmsException(e);
    } catch (InterruptedException e) {
      throw new RdbmsRuntimeException(e);
    }
  }
View Full Code Here

  public void insert(String prefix, String namespace)
    throws SQLException
  {
    int result = table.executeUpdate(INSERT, prefix, namespace);
    if (result != 1 && result != Statement.SUCCESS_NO_INFO)
      throw new RdbmsRuntimeException("Namespace could not be created");
    table.modified(1, 0);
    table.optimize();
  }
View Full Code Here

  public void updatePrefix(String prefix, String namespace)
    throws SQLException
  {
    int result = table.executeUpdate(UPDATE, prefix, namespace);
    if (result != 1 && result != Statement.SUCCESS_NO_INFO)
      throw new RdbmsRuntimeException("Namespace prefix could not be changed");
  }
View Full Code Here

TOP

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

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.