org.openrdf.sail.helpers
Class SailUpdateExecutor

java.lang.Object
  extended by org.openrdf.sail.helpers.SailUpdateExecutor

public class SailUpdateExecutor
extends Object

Implementation of SailConnection.executeUpdate(UpdateExpr, Dataset, BindingSet, boolean) using SailConnection.evaluate(TupleExpr, Dataset, BindingSet, boolean) and other SailConnection methods.

Author:
jeen, james

Constructor Summary
SailUpdateExecutor(SailConnection con, ValueFactory vf, boolean readSnapshot)
          An implementation of the SailConnection.executeUpdate(UpdateExpr, Dataset, BindingSet, boolean) using other methods like SailConnection.evaluate(TupleExpr, Dataset, BindingSet, boolean).
SailUpdateExecutor(Sail sail, SailConnection con)
          Deprecated. 
 
Method Summary
protected  void executeAdd(Add add, Dataset dataset, BindingSet bindings, boolean includeInferred)
           
protected  void executeClear(Clear clearExpr, Dataset dataset, BindingSet bindings, boolean includeInferred)
           
protected  void executeCopy(Copy copy, Dataset dataset, BindingSet bindings, boolean includeInferred)
           
protected  void executeCreate(Create create, Dataset dataset, BindingSet bindings, boolean includeInferred)
           
protected  void executeDeleteData(DeleteData deleteDataExpr, Dataset dataset, BindingSet bindings, boolean includeInferred)
           
protected  void executeInsertData(InsertData insertDataExpr, Dataset ds, BindingSet bindings, boolean includeInferred)
           
protected  void executeModify(Modify modify, Dataset ds, BindingSet bindings, boolean includeInferred)
           
protected  void executeMove(Move move, Dataset dataset, BindingSet bindings, boolean includeInferred)
           
 void executeUpdate(UpdateExpr updateExpr, Dataset dataset, BindingSet bindings, boolean includeInferred)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SailUpdateExecutor

@Deprecated
public SailUpdateExecutor(Sail sail,
                                     SailConnection con)
Deprecated. 


SailUpdateExecutor

public SailUpdateExecutor(SailConnection con,
                          ValueFactory vf,
                          boolean readSnapshot)
An implementation of the SailConnection.executeUpdate(UpdateExpr, Dataset, BindingSet, boolean) using other methods like SailConnection.evaluate(TupleExpr, Dataset, BindingSet, boolean).

Parameters:
con - Used to read data from and write data to.
vf - Used to create BNodes
readSnapshot - true if read operations do not observe concurrent writes, false if read results may changes as data is written
Method Detail

executeUpdate

public void executeUpdate(UpdateExpr updateExpr,
                          Dataset dataset,
                          BindingSet bindings,
                          boolean includeInferred)
                   throws SailException
Throws:
SailException

executeCreate

protected void executeCreate(Create create,
                             Dataset dataset,
                             BindingSet bindings,
                             boolean includeInferred)
                      throws SailException
Throws:
SailException

executeCopy

protected void executeCopy(Copy copy,
                           Dataset dataset,
                           BindingSet bindings,
                           boolean includeInferred)
                    throws SailException
Parameters:
updateExpr -
dataset -
bindings -
includeInferred -
Throws:
SailException

executeAdd

protected void executeAdd(Add add,
                          Dataset dataset,
                          BindingSet bindings,
                          boolean includeInferred)
                   throws SailException
Parameters:
updateExpr -
dataset -
bindings -
includeInferred -
Throws:
SailException

executeMove

protected void executeMove(Move move,
                           Dataset dataset,
                           BindingSet bindings,
                           boolean includeInferred)
                    throws SailException
Parameters:
updateExpr -
dataset -
bindings -
includeInferred -
Throws:
SailException

executeClear

protected void executeClear(Clear clearExpr,
                            Dataset dataset,
                            BindingSet bindings,
                            boolean includeInferred)
                     throws SailException
Parameters:
updateExpr -
dataset -
bindings -
includeInferred -
Throws:
SailException

executeInsertData

protected void executeInsertData(InsertData insertDataExpr,
                                 Dataset ds,
                                 BindingSet bindings,
                                 boolean includeInferred)
                          throws SailException
Parameters:
updateExpr -
dataset -
bindings -
includeInferred -
Throws:
SailException

executeDeleteData

protected void executeDeleteData(DeleteData deleteDataExpr,
                                 Dataset dataset,
                                 BindingSet bindings,
                                 boolean includeInferred)
                          throws SailException
Parameters:
updateExpr -
dataset -
bindings -
includeInferred -
Throws:
SailException

executeModify

protected void executeModify(Modify modify,
                             Dataset ds,
                             BindingSet bindings,
                             boolean includeInferred)
                      throws SailException
Throws:
SailException


Copyright © 2001-2012 Aduna. All Rights Reserved.