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

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

public abstract class AbstractPostgresCommand
extends Object
implements ICommand


Field Summary
protected  ISession _session
          Current session.
 
Constructor Summary
AbstractPostgresCommand(ISession session)
           
 
Method Summary
protected abstract  String[] generateSQLStatements()
          The subclass should implement this so that getSQLStatements can generate the actual statements.
protected  void getSQLStatements(SQLResultListener listener)
          Adds a new task to the ThreadPool that generates the SQL statements and notifies the listener when the statements are ready.
 
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
 

Field Detail

_session

protected ISession _session
Current session.

Constructor Detail

AbstractPostgresCommand

public AbstractPostgresCommand(ISession session)
Method Detail

generateSQLStatements

protected abstract String[] generateSQLStatements()
The subclass should implement this so that getSQLStatements can generate the actual statements.

Returns:
the sql statements

getSQLStatements

protected void getSQLStatements(SQLResultListener listener)
Adds a new task to the ThreadPool that generates the SQL statements and notifies the listener when the statements are ready.

Parameters:
listener - the listener to notify when the statments are ready


Copyright © 2001-2010. All Rights Reserved.