Class SPARQLUpdateOperation
java.lang.Object
org.eclipse.rdf4j.http.protocol.transaction.operations.SPARQLUpdateOperation
- All Implemented Interfaces:
Serializable
,TransactionOperation
Encapsulation of a SPARQL 1.1 update operation executed as part of a transaction.
- Author:
- Jeen Broekstra
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorDescriptionSPARQLUpdateOperation(String updateString, String baseURI, boolean includeInferred, Dataset dataset, Binding... bindings)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute(RepositoryConnection con)
Executes this operation on the supplied connection.Binding[]
boolean
void
setBaseURI(String baseURI)
void
setBindings(Binding[] bindings)
void
setDataset(Dataset dataset)
void
setIncludeInferred(boolean includeInferred)
void
setUpdateString(String updateString)
-
Constructor Details
-
SPARQLUpdateOperation
public SPARQLUpdateOperation() -
SPARQLUpdateOperation
-
-
Method Details
-
execute
Description copied from interface:TransactionOperation
Executes this operation on the supplied connection.- Specified by:
execute
in interfaceTransactionOperation
- Parameters:
con
- The connection the operation should be performed on.- Throws:
RepositoryException
- If such an exception is thrown by the connection while executing the operation.
-
getUpdateString
- Returns:
- Returns the updateString.
-
setUpdateString
- Parameters:
updateString
- The updateString to set.
-
getBaseURI
- Returns:
- Returns the baseURI.
-
setBaseURI
- Parameters:
baseURI
- The baseURI to set.
-
isIncludeInferred
public boolean isIncludeInferred()- Returns:
- Returns the includeInferred.
-
setIncludeInferred
public void setIncludeInferred(boolean includeInferred)- Parameters:
includeInferred
- The includeInferred to set.
-
getDataset
- Returns:
- Returns the dataset.
-
setDataset
- Parameters:
dataset
- The dataset to set.
-
getBindings
- Returns:
- Returns the bindings.
-
setBindings
- Parameters:
bindings
- The bindings to set.
-