Class ClearOperation
- java.lang.Object
-
- org.eclipse.rdf4j.http.protocol.transaction.operations.ContextOperation
-
- org.eclipse.rdf4j.http.protocol.transaction.operations.ClearOperation
-
- All Implemented Interfaces:
Serializable
,TransactionOperation
public class ClearOperation extends ContextOperation implements Serializable
Operation that clears the whole repository.- Author:
- Arjohn Kampman, Leo Sauermann
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.eclipse.rdf4j.http.protocol.transaction.operations.ContextOperation
contexts
-
-
Constructor Summary
Constructors Constructor Description ClearOperation(Resource... contexts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
void
execute(RepositoryConnection con)
Executes this operation on the supplied connection.-
Methods inherited from class org.eclipse.rdf4j.http.protocol.transaction.operations.ContextOperation
getContexts, hashCode, setContexts
-
-
-
-
Constructor Detail
-
ClearOperation
public ClearOperation(Resource... contexts)
-
-
Method Detail
-
execute
public void execute(RepositoryConnection con) throws RepositoryException
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.
-
equals
public boolean equals(Object other)
- Overrides:
equals
in classContextOperation
-
-