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.Connection;
09:
10: /**
11: *
12: * @author James Leigh
13: */
14: public class TableFactory {
15: protected static final String TRANS_STATEMENTS = "TRANSACTION_STATEMENTS";
16:
17: public RdbmsTable createTemporaryTable(Connection conn) {
18: return createTemporaryTable(conn, TRANS_STATEMENTS);
19: }
20:
21: public RdbmsTable createTemporaryTable(Connection conn, String name) {
22: return createTable(conn, name);
23: }
24:
25: public RdbmsTable createTable(Connection conn, String name) {
26: RdbmsTable table = newTable(name);
27: table.setConnection(conn);
28: return table;
29: }
30:
31: protected RdbmsTable newTable(String name) {
32: return new RdbmsTable(name);
33: }
34:
35: }
|