public class TableCreatingConnection extends ConnectionWrapper
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE| Constructor and Description |
|---|
TableCreatingConnection(Connection wrapped,
DDLConverter converter)
Constructs a TableCreatingConnection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createTable(TableSpec spec)
Creates a table in the target database.
|
DDLConverter |
getDDLConverter()
Get the DDLConverter this TableCreatingConnection works with.
|
abort, clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getNetworkTimeout, getSchema, 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, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, unwrappublic TableCreatingConnection(Connection wrapped, DDLConverter converter)
wrapped - The wrapped connection.converter - A converter that can translate from a TableSpec to DB-specific
DDL.public DDLConverter getDDLConverter()
public void createTable(TableSpec spec) throws SQLException
This method may execute more than one update command and it ignores the transaction state of the connection.
spec - A description of the table to be created.SQLExceptionCopyright © 2013 DuraSpace. All Rights Reserved.