|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.squirrel_sql.plugins.refactoring.commands.AbstractRefactoringCommand
net.sourceforge.squirrel_sql.plugins.refactoring.commands.ModifyColumnCommand
public class ModifyColumnCommand
The command implementation that allows a user to modify a single column in a table. If the table has more than one column, this command will first present the user with a column list dialog to ask them which column to modify.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sourceforge.squirrel_sql.plugins.refactoring.commands.AbstractRefactoringCommand |
|---|
AbstractRefactoringCommand.CommandExecHandler, AbstractRefactoringCommand.EditSQLListener, AbstractRefactoringCommand.ExecuteListener, AbstractRefactoringCommand.ShowSQLListener |
| Field Summary | |
|---|---|
protected ColumnDetailDialog |
customDialog
Dialog that is displayed to user when this command is executed and there is only one column in the table, or the column list dialog as presented and the user chose a single column to modify. |
| Fields inherited from class net.sourceforge.squirrel_sql.plugins.refactoring.commands.AbstractRefactoringCommand |
|---|
_dialect, _info, _qualifier, _session, _sqlPrefs |
| Constructor Summary | |
|---|---|
ModifyColumnCommand(ISession session,
IDatabaseObjectInfo[] info)
Creates an instance of ModifyColumnCommand. |
|
| Method Summary | |
|---|---|
protected void |
executeScript(String script)
The subclass should implement this so that the ExecuteListener can delegate the execution of the sql script to the subclass. |
protected String[] |
generateSQLStatements()
The subclass should implement this so that getSQLStatements can generate the actual statements. |
protected boolean |
isRefactoringSupportedForDialect(HibernateDialect dialectExt)
Returns a boolean value indicating whether or not this refactoring is supported for the specified dialect. |
protected void |
onExecute()
The subclass should implement this method with it's refactoring specific execution code. |
| Methods inherited from class net.sourceforge.squirrel_sql.plugins.refactoring.commands.AbstractRefactoringCommand |
|---|
execute, getSQLStatements |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ColumnDetailDialog customDialog
| Constructor Detail |
|---|
public ModifyColumnCommand(ISession session,
IDatabaseObjectInfo[] info)
session - the current ISessioninfo - the list of IDatabaseObjectInfo(s) that the user selected| Method Detail |
|---|
protected void onExecute()
throws SQLException
AbstractRefactoringCommand
onExecute in class AbstractRefactoringCommandSQLExceptionAbstractRefactoringCommand.onExecute()protected String[] generateSQLStatements()
AbstractRefactoringCommand
generateSQLStatements in class AbstractRefactoringCommandAbstractRefactoringCommand.generateSQLStatements()protected void executeScript(String script)
AbstractRefactoringCommand
executeScript in class AbstractRefactoringCommandscript - the sql script that should be executedprotected boolean isRefactoringSupportedForDialect(HibernateDialect dialectExt)
isRefactoringSupportedForDialect in class AbstractRefactoringCommanddialectExt - the HibernateDialect to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||