|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.clazzes.jdbc2xml.schema.impl.DropColumnCommand
public class DropColumnCommand
This class implements a rollback-enabled variant of a drop column statement.
| Constructor Summary | |
|---|---|
DropColumnCommand(TableInfo ti,
ColumnInfo ci,
Dialect dialect,
java.lang.String suffix,
java.lang.String addColumnCommand)
Construct a drop column command with rollback support. |
|
| Method Summary | |
|---|---|
void |
cleanupOnCommit(java.sql.Connection connection)
Cleanup resources kept by this command, if the transaction is committed. |
void |
perform(java.sql.Connection connection)
Perform an atomic SQL command. |
void |
rollback(java.sql.Connection connection)
Roll back an atomic SQL command. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DropColumnCommand(TableInfo ti,
ColumnInfo ci,
Dialect dialect,
java.lang.String suffix,
java.lang.String addColumnCommand)
throws java.sql.SQLException
ti - The description of the table.ci - The description of the column to be created.dialect - The dialect used to build column specs for the reverse operation.suffix - The RDMBS-specific create table suffix.
java.sql.SQLException - Upon unsupported foreign key options.DDLHelper.buildAddColumn(String, ColumnInfo, Dialect, String)| Method Detail |
|---|
public void cleanupOnCommit(java.sql.Connection connection)
throws java.sql.SQLException
SqlCommand
cleanupOnCommit in interface SqlCommandjava.sql.SQLException
public void perform(java.sql.Connection connection)
throws java.sql.SQLException
SqlCommand
perform in interface SqlCommandconnection - A JDBC connection on which to perform queries.
java.sql.SQLException - Upon database errors.
public void rollback(java.sql.Connection connection)
throws java.sql.SQLException
SqlCommand
rollback in interface SqlCommandconnection - A JDBC connection on which to perform queries.
java.sql.SQLException - Upon database errors or when a rollback is
not supported.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||