01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2006.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.http.protocol.transaction.operations;
07:
08: import org.openrdf.repository.RepositoryConnection;
09: import org.openrdf.repository.RepositoryException;
10:
11: /**
12: * An update operation that is part of a transaction.
13: *
14: * @author Arjohn Kampman
15: */
16: public interface TransactionOperation {
17:
18: /**
19: * Executes this operation on the supplied connection.
20: *
21: * @param con
22: * The connection the operation should be performed on.
23: * @throws RepositoryException
24: * If such an exception is thrown by the connection while executing
25: * the operation.
26: */
27: public abstract void execute(RepositoryConnection con)
28: throws RepositoryException;
29: }
|