SPT RWT Application API

com.sptci.rwt.webui
Class ExecuteBatchQueryListener

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

public class ExecuteBatchQueryListener
extends com.sptci.echo2.Listener<MainController>

The listener for the QueryExecutorView used to interact with the QueryExecutor class.

© Copyright 2007 Sans Pareil Technologies, Inc.

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

Field Summary
 
Fields inherited from class com.sptci.echo2.Listener
controller, logger
 
Constructor Summary
ExecuteBatchQueryListener(MainController controller)
          Create a new instance of the listener using the specified Controller to interact with the application.
 
Method Summary
 void actionPerformed(ActionEvent event)
          The ActionListener implementation.
private  void processQuery(BatchQueryExecutorView view)
          Process the query entered in ExecutorView.query field.
 
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
 

Constructor Detail

ExecuteBatchQueryListener

public ExecuteBatchQueryListener(MainController controller)
Create a new instance of the listener using the specified Controller to interact with the application.

Parameters:
controller - The controller to use.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
The ActionListener implementation. Submit the entered query to the database server for execution. Handle query execution in the background to enable cancellation of the query.

Parameters:
event - The action event that was triggered by the user.

processQuery

private void processQuery(BatchQueryExecutorView view)
                   throws SQLException
Process the query entered in ExecutorView.query field.

Parameters:
view - The view from which this action was triggered.
Throws:
SQLException - If errors are encountered while executing the query.

SPT RWT Application API