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:
-
Constructor Summary
ConstructorsConstructorDescriptionSPARQLUpdateOperation(String updateString, String baseURI, boolean includeInferred, Dataset dataset, Binding... bindings) -
Method Summary
Modifier and TypeMethodDescriptionvoidExecutes this operation on the supplied connection.Binding[]booleanvoidsetBaseURI(String baseURI) voidsetBindings(Binding[] bindings) voidsetDataset(Dataset dataset) voidsetIncludeInferred(boolean includeInferred) voidsetUpdateString(String updateString)
-
Constructor Details
-
SPARQLUpdateOperation
public SPARQLUpdateOperation() -
SPARQLUpdateOperation
-
-
Method Details
-
execute
Description copied from interface:TransactionOperationExecutes this operation on the supplied connection.- Specified by:
executein 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.
-