01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 2007.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.repository.event;
07:
08: import org.openrdf.model.Resource;
09: import org.openrdf.model.URI;
10: import org.openrdf.model.Value;
11: import org.openrdf.repository.RepositoryConnection;
12:
13: /**
14: * Interceptor interface for connection modification.
15: *
16: * @author Herko ter Horst
17: */
18: public interface RepositoryConnectionInterceptor {
19:
20: public abstract boolean close(RepositoryConnection conn);
21:
22: public abstract boolean setAutoCommit(RepositoryConnection conn,
23: boolean autoCommit);
24:
25: public abstract boolean commit(RepositoryConnection conn);
26:
27: public abstract boolean rollback(RepositoryConnection conn);
28:
29: public abstract boolean add(RepositoryConnection conn,
30: Resource subject, URI predicate, Value object,
31: Resource... contexts);
32:
33: public abstract boolean remove(RepositoryConnection conn,
34: Resource subject, URI predicate, Value object,
35: Resource... contexts);
36:
37: public abstract boolean clear(RepositoryConnection conn,
38: Resource... contexts);
39:
40: public abstract boolean setNamespace(RepositoryConnection conn,
41: String prefix, String name);
42:
43: public abstract boolean removeNamespace(RepositoryConnection conn,
44: String prefix);
45:
46: public abstract boolean clearNamespaces(RepositoryConnection conn);
47: }
|