01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 2008.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.sail.rdbms.managers;
07:
08: import java.sql.SQLException;
09:
10: import org.openrdf.sail.rdbms.managers.base.ManagerBase;
11:
12: /**
13: *
14: * @author James Leigh
15: */
16: public class TripleManager extends ManagerBase {
17:
18: public static TripleManager instance;
19:
20: private TransTableManager statements;
21:
22: public TripleManager() {
23: instance = this ;
24: }
25:
26: public void setTransTableManager(TransTableManager statements) {
27: this .statements = statements;
28: }
29:
30: @Override
31: public void close() throws SQLException {
32: super .close();
33: statements.close();
34: }
35:
36: public void insert(Number ctx, Number subj, Number pred, Number obj)
37: throws SQLException, InterruptedException {
38: statements.insert(ctx, subj, pred, obj);
39: }
40:
41: }
|