org.openrdf.repository.sail
Class SailUpdate

java.lang.Object
  extended by org.openrdf.query.impl.AbstractOperation
      extended by org.openrdf.repository.sail.SailUpdate
All Implemented Interfaces:
Operation, Update

public class SailUpdate
extends AbstractOperation
implements Update

Author:
Jeen Broekstra

Field Summary
 
Fields inherited from class org.openrdf.query.impl.AbstractOperation
bindings, dataset, includeInferred
 
Constructor Summary
protected SailUpdate(ParsedUpdate parsedUpdate, SailRepositoryConnection con)
           
 
Method Summary
 void execute()
          Execute this update on the repository.
 Dataset getActiveDataset()
          Gets the "active" dataset for this update.
protected  SailRepositoryConnection getConnection()
           
 ParsedUpdate getParsedUpdate()
           
 String toString()
           
 
Methods inherited from class org.openrdf.query.impl.AbstractOperation
clearBindings, getBindings, getDataset, getIncludeInferred, removeBinding, setBinding, setDataset, setIncludeInferred
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openrdf.query.Operation
clearBindings, getBindings, getDataset, getIncludeInferred, removeBinding, setBinding, setDataset, setIncludeInferred
 

Constructor Detail

SailUpdate

protected SailUpdate(ParsedUpdate parsedUpdate,
                     SailRepositoryConnection con)
Method Detail

getParsedUpdate

public ParsedUpdate getParsedUpdate()

getConnection

protected SailRepositoryConnection getConnection()

getActiveDataset

public Dataset getActiveDataset()
Gets the "active" dataset for this update. The active dataset is either the dataset that has been specified using AbstractOperation.setDataset(Dataset) or the dataset that has been specified in the update, where the former takes precedence over the latter.

Returns:
The active dataset, or null if there is no dataset.

toString

public String toString()
Overrides:
toString in class Object

execute

public void execute()
             throws UpdateExecutionException
Description copied from interface: Update
Execute this update on the repository.

Specified by:
execute in interface Update
Throws:
UpdateExecutionException - if the update could not be successfully completed.


Copyright © 2001-2012 Aduna. All Rights Reserved.