/** * Obtain a read-only connection to the database at the last commit point. A * read-only connection should be used for all pure-readers, as the * connection will not be blocked by concurrent writers. * * @return a read-only connection to the database * * @see BigdataSail#getReadOnlyConnection() */ public BigdataSailRepositoryConnection getReadOnlyConnection() throws RepositoryException { return new BigdataSailRepositoryConnection(this, getSail().getReadOnlyConnection()); }
/** * Obtain a read-only connection to the database from a historical commit * point. A read-only connection should be used for all pure-readers, as the * connection will not be blocked by concurrent writers. * * @return a read-only connection to the database * * @see BigdataSail#getReadOnlyConnection(long) */ public BigdataSailRepositoryConnection getReadOnlyConnection( final long timestamp) throws RepositoryException { return new BigdataSailRepositoryConnection(this, getSail().getReadOnlyConnection(timestamp)); }
/** * Obtain a read-only connection to the database at the last commit point. A * read-only connection should be used for all pure-readers, as the * connection will not be blocked by concurrent writers. * * @return a read-only connection to the database * * @see BigdataSail#getReadOnlyConnection() */ public BigdataSailRepositoryConnection getReadOnlyConnection() throws RepositoryException { return new BigdataSailRepositoryConnection(this, getSail().getReadOnlyConnection()); }
/** * Obtain a read-only connection to the database from a historical commit * point. A read-only connection should be used for all pure-readers, as the * connection will not be blocked by concurrent writers. * * @return a read-only connection to the database * * @see BigdataSail#getReadOnlyConnection(long) */ public BigdataSailRepositoryConnection getReadOnlyConnection( final long timestamp) throws RepositoryException { return new BigdataSailRepositoryConnection(this, getSail().getReadOnlyConnection(timestamp)); }
protected BigdataSailRepositoryConnection getQueryConnection(Repository dataRep) throws Exception { // return dataRep.getConnection(); final BigdataSailRepositoryConnection con = new BigdataSailRepositoryConnection(new BigdataSailRepository( _sail), _sail.getReadOnlyConnection()); // System.err.println(_sail.getDatabase().dumpStore()); return con; }
/** * Return a connection backed by a read-write transaction. * @throws InterruptedException * * @see BigdataSail#getReadWriteConnection() */ public BigdataSailRepositoryConnection getReadWriteConnection() throws RepositoryException, InterruptedException { try { return new BigdataSailRepositoryConnection(this, getSail().getReadWriteConnection()); } catch (IOException e) { throw new RepositoryException(e); } }
/** * Return a connection backed by a read-write transaction. * @throws InterruptedException * * @see BigdataSail#getReadWriteConnection() */ public BigdataSailRepositoryConnection getReadWriteConnection() throws RepositoryException, InterruptedException { try { return new BigdataSailRepositoryConnection(this, getSail().getReadWriteConnection()); } catch (IOException e) { throw new RepositoryException(e); } }
return new BigdataSailRepositoryConnection(this, getSail().getConnection());
return new BigdataSailRepositoryConnection(this, getSail().getUnisolatedConnection());
return new BigdataSailRepositoryConnection(this, getSail().getConnection());
return new BigdataSailRepositoryConnection(this, getSail().getUnisolatedConnection());
protected BigdataSailRepositoryConnection getQueryConnection(Repository dataRep) throws Exception { // return dataRep.getConnection(); final BigdataSailRepositoryConnection con = new BigdataSailRepositoryConnection(new BigdataSailRepository( _sail), _sail.getReadOnlyConnection()); // System.err.println(_sail.getDatabase().dumpStore()); return con; }