Package org.openrdf.store

Examples of org.openrdf.store.StoreException


    // FIXME: changes to namespace prefixes not isolated in transactions yet
    try {
      store.getNamespaceStore().setNamespace(prefix, name);
    }
    catch (IllegalArgumentException e) {
      throw new StoreException(e.getMessage());
    }
  }
View Full Code Here


      PropertyDescriptor[] properties = info.getPropertyDescriptors();
      HTTPRepositoryMetaData h = new HTTPRepositoryMetaData(repository, model, properties);
      return (RepositoryMetaData)Proxy.newProxyInstance(cl, interfaces, h);
    }
    catch (IntrospectionException e) {
      throw new StoreException(e);
    }
  }
View Full Code Here

      return contextIter;
    }
    catch (IOException e) {
      readLock.release();
      throw new StoreException(e);
    }
    catch (RuntimeException e) {
      readLock.release();
      throw e;
    }
View Full Code Here

      return iter;
    }
    catch (IOException e) {
      readLock.release();
      throw new StoreException("Unable to get statements", e);
    }
    catch (RuntimeException e) {
      readLock.release();
      throw e;
    }
View Full Code Here

      }

      return size;
    }
    catch (IOException e) {
      throw new StoreException(e);
    }
    finally {
      readLock.release();
    }
  }
View Full Code Here

    try {
      nativeStore.getTripleStore().startTransaction();
      super.begin();
    }
    catch (IOException e) {
      throw new StoreException(e);
    }
  }
View Full Code Here

      nativeStore.getNamespaceStore().sync();

      txnLock.release();
    }
    catch (IOException e) {
      throw new StoreException(e);
    }
    catch (RuntimeException e) {
      logger.error("Encountered an unexpected problem while trying to commit", e);
      throw e;
    }
View Full Code Here

      nativeStore.getValueStore().sync();
      nativeStore.getTripleStore().rollback();
      super.rollback();
    }
    catch (IOException e) {
      throw new StoreException(e);
    }
    catch (RuntimeException e) {
      logger.error("Encountered an unexpected problem while trying to roll back", e);
      throw e;
    }
View Full Code Here

          }
        }
      }
    }
    catch (IOException e) {
      throw new StoreException(e);
    }
    catch (RuntimeException e) {
      logger.error("Encountered an unexpected problem while trying to add a statement", e);
      throw e;
    }
View Full Code Here

      }

      return removeCount;
    }
    catch (IOException e) {
      throw new StoreException(e);
    }
    catch (RuntimeException e) {
      logger.error("Encountered an unexpected problem while trying to remove statements", e);
      throw e;
    }
View Full Code Here

TOP

Related Classes of org.openrdf.store.StoreException

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.