org.fcrepo.server.utilities
Class TableCreatingConnection
java.lang.Object
org.fcrepo.server.utilities.ConnectionWrapper
org.fcrepo.server.utilities.TableCreatingConnection
- All Implemented Interfaces:
- Connection, Wrapper
public class TableCreatingConnection
- extends ConnectionWrapper
A ConnectionWrapper that creates tables on the target database given a
TableSpec.
- Author:
- Chris Wilper
| Methods inherited from class org.fcrepo.server.utilities.ConnectionWrapper |
clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, unwrap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableCreatingConnection
public TableCreatingConnection(Connection wrapped,
DDLConverter converter)
- Constructs a TableCreatingConnection.
- Parameters:
wrapped - The wrapped connection.converter - A converter that can translate from a TableSpec to DB-specific
DDL.
getDDLConverter
public DDLConverter getDDLConverter()
- Get the DDLConverter this TableCreatingConnection works with.
- Returns:
- The converter.
createTable
public void createTable(TableSpec spec)
throws SQLException
- Creates a table in the target database.
This method may execute more than one update command and it ignores the
transaction state of the connection.
- Parameters:
spec - A description of the table to be created.
- Throws:
SQLException
Copyright © 2011 DuraSpace. All Rights Reserved.