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.schema;
07:
08: import java.sql.SQLException;
09:
10: /**
11: * Manages the rows in the BNode table.
12: *
13: * @author James Leigh
14: *
15: */
16: public class BNodeTable {
17: private ValueTable table;
18:
19: public BNodeTable(ValueTable table) {
20: super ();
21: this .table = table;
22: }
23:
24: public void close() throws SQLException {
25: table.close();
26: }
27:
28: public String getName() {
29: return table.getName();
30: }
31:
32: public int getBatchSize() {
33: return table.getBatchSize();
34: }
35:
36: public void insert(Number id, String value) throws SQLException,
37: InterruptedException {
38: table.insert(id, value);
39: }
40:
41: public boolean expungeRemovedStatements(int count, String condition)
42: throws SQLException {
43: return table.expungeRemovedStatements(count, condition);
44: }
45:
46: @Override
47: public String toString() {
48: return getName();
49: }
50:
51: public void optimize() throws SQLException {
52: table.optimize();
53: }
54: }
|