@Override public final void addStatement(Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException { if(pendingRemovals()){ flushPendingUpdates(); } addStatement(null, subj, pred, obj, contexts); }
@Override public void flush() throws SailException { if (isActive()) { endUpdate(null); startUpdate(null); } }
@Override protected void removeStatementsInternal(Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException { sailChangedEvent.setStatementsRemoved(true); }
@Override protected void addStatementInternal(Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException { // assume the triple is not yet present in the triple store sailChangedEvent.setStatementsAdded(true); }
@Override public NotifyingSailConnection getConnection() throws SailException { return (NotifyingSailConnection)super.getConnection(); }
public AbstractSail() { super(); this.addSupportedIsolationLevel(IsolationLevels.READ_UNCOMMITTED); this.addSupportedIsolationLevel(IsolationLevels.SERIALIZABLE); }
/** * Creates a new SailWrapper that wraps the supplied Sail. */ public SailWrapper(Sail baseSail) { setBaseSail(baseSail); }
@Override public synchronized void addStatement(Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException { super.addStatement(subj, pred, obj, contexts); }
/** * {@inheritDoc } */ @Override public synchronized void removeStatements(Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException { super.removeStatements(subj, pred, obj, contexts); }
/** * Creates a new SailWrapper that wraps the supplied Sail. */ public NotifyingSailWrapper(NotifyingSail baseSail) { setBaseSail(baseSail); }
@Override public String getNamespace(String prefix) throws SailException { return namespacesAreReadable ? super.getNamespace(prefix) : null; }
@Override public final void addStatement(Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException { if(pendingRemovals()){ flushPendingUpdates(); } addStatement(null, subj, pred, obj, contexts); }
@Override protected void removeStatementsInternal(Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException { sailChangedEvent.setStatementsRemoved(true); }
@Override protected void addStatementInternal(Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException { // assume the triple is not yet present in the triple store sailChangedEvent.setStatementsAdded(true); }
@Override public NotifyingSailConnection getConnection() throws SailException { return (NotifyingSailConnection)super.getConnection(); }
public AbstractSail() { super(); this.addSupportedIsolationLevel(IsolationLevels.READ_UNCOMMITTED); this.addSupportedIsolationLevel(IsolationLevels.SERIALIZABLE); }
/** * Creates a new SailWrapper that wraps the supplied Sail. */ public SailWrapper(Sail baseSail) { setBaseSail(baseSail); }
@Override public synchronized void addStatement(Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException { super.addStatement(subj, pred, obj, contexts); }
@Override protected void removeStatementsInternal(Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException { sailChangedEvent.setStatementsRemoved(true); }
@Override protected void addStatementInternal(Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException { // assume the triple is not yet present in the triple store sailChangedEvent.setStatementsAdded(true); }