|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.utilities.ConnectionWrapper
org.fcrepo.server.utilities.TableCreatingConnection
public class TableCreatingConnection
A ConnectionWrapper that creates tables on the target database given a TableSpec.
| Field Summary |
|---|
| Fields inherited from interface java.sql.Connection |
|---|
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
| Constructor Summary | |
|---|---|
TableCreatingConnection(Connection wrapped,
DDLConverter converter)
Constructs a TableCreatingConnection. |
|
| Method Summary | |
|---|---|
void |
createTable(TableSpec spec)
Creates a table in the target database. |
DDLConverter |
getDDLConverter()
Get the DDLConverter this TableCreatingConnection works with. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableCreatingConnection(Connection wrapped,
DDLConverter converter)
wrapped - The wrapped connection.converter - A converter that can translate from a TableSpec to DB-specific
DDL.| Method Detail |
|---|
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.
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||