net.sourceforge.squirrel_sql.plugins.postgres.commands
Class AbstractPostgresDialogCommand

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.postgres.commands.AbstractPostgresCommand
      extended by net.sourceforge.squirrel_sql.plugins.postgres.commands.AbstractPostgresDialogCommand
All Implemented Interfaces:
ICommand
Direct Known Subclasses:
VacuumDatabaseCommand, VacuumTableCommand

public abstract class AbstractPostgresDialogCommand
extends AbstractPostgresCommand


Nested Class Summary
protected  class AbstractPostgresDialogCommand.EditSQLListener
          An ActionListener for the Edit SQL button that appends the sql statement to the sql panel, hides the specified dialog and switches to the sql panel.
protected  class AbstractPostgresDialogCommand.ExecuteListener
          An ActionListener for the Execute button that delegates the execution of the sql statement to the subclass.
protected  class AbstractPostgresDialogCommand.ShowSQLListener
          An ActionListener for the Show SQL button that opens the sql statement in a dialog.
 
Field Summary
 
Fields inherited from class net.sourceforge.squirrel_sql.plugins.postgres.commands.AbstractPostgresCommand
_session
 
Constructor Summary
AbstractPostgresDialogCommand(ISession session)
           
 
Method Summary
protected abstract  void executeScript(String script)
          The subclass should implement this so that the ExecuteListener can delegate the execution of the sql script to the subclass.
 
Methods inherited from class net.sourceforge.squirrel_sql.plugins.postgres.commands.AbstractPostgresCommand
generateSQLStatements, getSQLStatements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.squirrel_sql.fw.util.ICommand
execute
 

Constructor Detail

AbstractPostgresDialogCommand

public AbstractPostgresDialogCommand(ISession session)
Method Detail

executeScript

protected abstract void executeScript(String script)
The subclass should implement this so that the ExecuteListener can delegate the execution of the sql script to the subclass.

Parameters:
script - the sql script that should be executed


Copyright © 2001-2010. All Rights Reserved.