protected int countContext1Elements() throws Exception, SailException { return countElements(con.getStatements(null, null, null, false, context1)); }
private void beginLocalTransaction() throws SailException { getSailConnection().begin(); }
private void commitLocalTransaction() throws SailException { getSailConnection().commit(); } }
protected void assertOpenConn() throws SailException { if(!openConn) { throw new SailException("Closed"); } }
protected void addStatementInternal(final Resource subj, final IRI pred, final Value obj, final Resource... contexts) throws SailException { baseConnection.addStatement(subj, pred, obj, contexts); }
public void removeNow(Resource subj, URI pred, Value obj, Resource... contexts) throws SailException { delegate.removeStatements(subj, pred, obj, contexts); } };
@Test public void testNullNamespaceDisallowed() throws Exception { try { con.setNamespace("foo", null); fail("Expected NullPointerException"); } catch (NullPointerException e) { // expected } }
private boolean isLocalTransaction() throws SailException { return !getSailConnection().isActive(); }
public LuceneSailConnection(NotifyingSailConnection wrappedConnection, SearchIndex luceneIndex, LuceneSail sail) { super(wrappedConnection); this.luceneIndex = luceneIndex; this.sail = sail; /* * Using SailConnectionListener, see <a href="#whySailConnectionListener">above</a> */ wrappedConnection.addConnectionListener(connectionListener); }
@Override public void clearNamespacesInternal() throws SailException { throw new SailReadOnlyException(""); }
/** * Unsupported API. */ @Override public void removeStatement(UpdateContext op, Resource subj, URI pred, Value obj, Resource... contexts) throws SailException { throw new SailException(ERR_OPENRDF_QUERY_MODEL); }
protected int countAllElements() throws Exception, SailException { return countElements(con.getStatements(null, null, null, false)); }
public void addNow(Resource subj, URI pred, Value obj, Resource... contexts) throws SailException { delegate.addStatement(subj, pred, obj, contexts); } };
@Test public void testNullNamespaceDisallowed() throws Exception { try { con.setNamespace("foo", null); fail("Expected NullPointerException"); } catch (NullPointerException e) { // expected } }
public KiWiTransactionalConnection(NotifyingSailConnection wrapped, Collection<TransactionListener> listeners) throws SailException { super(wrapped); wrapped.addConnectionListener(this); this.listeners = listeners; }
@Override protected void throwInterruptedException() throws SailException { throw new SailException("execution took too long"); } };
protected int countAllElements() throws Exception, SailException { return countElements(con.getStatements(null, null, null, false)); }
@Override protected void throwInterruptedException() throws SailException { throw new SailException("execution took too long"); } };
protected int countContext1Elements() throws Exception, SailException { return countElements(con.getStatements(null, null, null, false, context1)); }
/** * Unsupported API. */ @Override public void startUpdate(UpdateContext op) throws SailException { throw new SailException(ERR_OPENRDF_QUERY_MODEL); }