com.sptci.rwt.webui
Class ExecuteBatchQueryListener
java.lang.Object
com.sptci.echo2.Listener<MainController>
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
| Fields inherited from class com.sptci.echo2.Listener |
controller, logger |
| 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 |
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.
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.