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.postgresql;
07:
08: import java.sql.Connection;
09:
10: import org.openrdf.sail.rdbms.schema.HashTable;
11: import org.openrdf.sail.rdbms.schema.TripleTable;
12: import org.openrdf.sail.rdbms.schema.ValueTable;
13: import org.openrdf.sail.rdbms.schema.ValueTableFactory;
14:
15: /**
16: * Overrides PostgreSQL specific table commands.
17: *
18: * @author James Leigh
19: *
20: */
21: public class PgSqlValueTableFactory extends ValueTableFactory {
22:
23: public PgSqlValueTableFactory() {
24: super (new PgSqlTableFactory());
25: }
26:
27: @Override
28: public PgSqlValueTable newValueTable() {
29: return new PgSqlValueTable();
30: }
31:
32: @Override
33: public TripleTable createTripleTable(Connection conn,
34: String tableName) {
35: return super .createTripleTable(conn, tableName.toLowerCase());
36: }
37:
38: @Override
39: protected HashTable newHashtable(ValueTable table) {
40: return new PgSqlHashtable(table);
41: }
42: }
|