net.sourceforge.squirrel_sql.plugins.refactoring.commands
Class DropUniqueConstraintCommand
java.lang.Object
net.sourceforge.squirrel_sql.plugins.refactoring.commands.AbstractRefactoringCommand
net.sourceforge.squirrel_sql.plugins.refactoring.commands.DropUniqueConstraintCommand
- All Implemented Interfaces:
- ICommand
public class DropUniqueConstraintCommand
- extends AbstractRefactoringCommand
|
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. |
protected void |
showCustomDialog()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
customDialog
protected DefaultDropDialog customDialog
DropUniqueConstraintCommand
public DropUniqueConstraintCommand(ISession session,
IDatabaseObjectInfo[] dbInfo)
onExecute
protected void onExecute()
throws SQLException
- Description copied from class:
AbstractRefactoringCommand
- The subclass should implement this method with it's refactoring specific execution code.
- Specified by:
onExecute in class AbstractRefactoringCommand
- Throws:
SQLException
showCustomDialog
protected void showCustomDialog()
generateSQLStatements
protected String[] generateSQLStatements()
throws UserCancelledOperationException
- Description copied from class:
AbstractRefactoringCommand
- The subclass should implement this so that getSQLStatements can generate the actual statements.
- Specified by:
generateSQLStatements in class AbstractRefactoringCommand
- Returns:
- the sql statements
- Throws:
UserCancelledOperationException
executeScript
protected void executeScript(String script)
- Description copied from class:
AbstractRefactoringCommand
- The subclass should implement this so that the ExecuteListener can delegate the execution of the sql
script to the subclass.
- Specified by:
executeScript in class AbstractRefactoringCommand
- Parameters:
script - the sql script that should be executed
isRefactoringSupportedForDialect
protected boolean isRefactoringSupportedForDialect(HibernateDialect dialectExt)
- Returns a boolean value indicating whether or not this refactoring is supported for the specified
dialect.
- Specified by:
isRefactoringSupportedForDialect in class AbstractRefactoringCommand
- Parameters:
dialectExt - the HibernateDialect to check
- Returns:
- true if this refactoring is supported; false otherwise.
Copyright © 2001-2012. All Rights Reserved.