SPT RWT Application API

com.sptci.rwt.webui
Class SavedQueryExecutorListener

java.lang.Object
  extended by com.sptci.echo2.Listener<MainController>
      extended by com.sptci.rwt.webui.ExecutorListener
          extended by com.sptci.rwt.webui.SavedQueryExecutorListener
All Implemented Interfaces:
Serializable, EventListener, ActionListener

public class SavedQueryExecutorListener
extends ExecutorListener

Action listener for executing a saved SQL statement (which may be a batch of statements) using BatchQueryExecutorView.

© Copyright 2007 Sans Pareil Technologies, Inc.

Version:
$Id: SavedQueryExecutorListener.java 4123 2008-05-25 21:49:01Z rakesh $
Author:
Rakesh Vidyadharan 2007-10-13
See Also:
Serialized Form

Field Summary
private  String statement
          The query that is to be executed.
 
Fields inherited from class com.sptci.echo2.Listener
controller, logger
 
Constructor Summary
SavedQueryExecutorListener(String statement, MainController controller)
          Create a new instance of the listener using the specified query and controller.
 
Method Summary
 void actionPerformed(ActionEvent event)
          The action listener implementation.
 
Methods inherited from class com.sptci.rwt.webui.ExecutorListener
checkConnection
 
Methods inherited from class com.sptci.echo2.Listener
getApplication, getController
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

statement

private final String statement
The query that is to be executed.

Constructor Detail

SavedQueryExecutorListener

public SavedQueryExecutorListener(String statement,
                                  MainController controller)
Create a new instance of the listener using the specified query and controller.

Parameters:
statement - The statement that is to be executed.
controller - The controller to use to interact with the application.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
The action listener implementation. Executes the query and exports the results.

Parameters:
event - The event that triggers the export process.

SPT RWT Application API