|
||||||||||
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(SchemaEngine schemaEngine,
TableInfo ti,
ColumnInfo ci,
Dialect dialect,
java.lang.String suffix,
java.lang.String addColumnCommand,
boolean addStatementInBrackets)
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. |
java.lang.String |
getTempTableName()
|
boolean |
isTempTableCreated()
|
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(SchemaEngine schemaEngine, TableInfo ti, ColumnInfo ci, Dialect dialect, java.lang.String suffix, java.lang.String addColumnCommand, boolean addStatementInBrackets) 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 SqlCommand
java.sql.SQLException
public void perform(java.sql.Connection connection) throws java.sql.SQLException
SqlCommand
perform
in interface SqlCommand
connection
- 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 SqlCommand
connection
- A JDBC connection on which to perform queries.
java.sql.SQLException
- Upon database errors or when a rollback is
not supported.public java.lang.String getTempTableName()
getTempTableName
in interface SqlCommand
public boolean isTempTableCreated()
isTempTableCreated
in interface SqlCommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |