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

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

public class VacuumTableCommand
extends AbstractPostgresDialogCommand


Nested Class Summary
protected static interface VacuumTableCommand.i18n
           
 
Nested classes/interfaces inherited from class net.sourceforge.squirrel_sql.plugins.postgres.commands.AbstractPostgresDialogCommand
AbstractPostgresDialogCommand.EditSQLListener, AbstractPostgresDialogCommand.ExecuteListener, AbstractPostgresDialogCommand.ShowSQLListener
 
Field Summary
protected  ITableInfo[] _infos
          Selected database object(s)
protected  VacuumTableDialog _mainDialog
          Main dialog
 
Fields inherited from class net.sourceforge.squirrel_sql.plugins.postgres.commands.AbstractPostgresCommand
_session
 
Constructor Summary
VacuumTableCommand(ISession session, IDatabaseObjectInfo[] infos)
           
 
Method Summary
 void execute()
          Execute this command.
protected  void executeScript(String script)
          Executes an sql script.
protected  String[] generateSQLStatements()
          Generates the SQL command
protected  void showDialog(ITableInfo[] tableinfos)
           
 
Methods inherited from class net.sourceforge.squirrel_sql.plugins.postgres.commands.AbstractPostgresCommand
getSQLStatements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_mainDialog

protected VacuumTableDialog _mainDialog
Main dialog


_infos

protected final ITableInfo[] _infos
Selected database object(s)

Constructor Detail

VacuumTableCommand

public VacuumTableCommand(ISession session,
                          IDatabaseObjectInfo[] infos)
Method Detail

execute

public void execute()
             throws BaseException
Execute this command.

Throws:
BaseException

showDialog

protected void showDialog(ITableInfo[] tableinfos)

generateSQLStatements

protected String[] generateSQLStatements()
Generates the SQL command

Specified by:
generateSQLStatements in class AbstractPostgresCommand
Returns:
the sql statements

executeScript

protected void executeScript(String script)
Executes an sql script.

Specified by:
executeScript in class AbstractPostgresDialogCommand
Parameters:
script - the sql script that should be executed


Copyright © 2001-2010. All Rights Reserved.