uk.org.ogsadai.client.databrowser.commands
Class SQLQueryCommand

java.lang.Object
  |
  +--java.util.Observable
        |
        +--uk.org.ogsadai.client.databrowser.commands.Command
              |
              +--uk.org.ogsadai.client.databrowser.commands.SQLQueryCommand
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class SQLQueryCommand
extends Command

Class to manage execution of SQL queries for the databrowser.

Author:
The OGSA-DAI Project Team.

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
           
 
Fields inherited from class uk.org.ogsadai.client.databrowser.commands.Command
mController
 
Fields inherited from class java.util.Observable
 
Constructor Summary
SQLQueryCommand(DBQueryController controller)
           
 
Method Summary
 java.lang.Object executeRequest(DBDataResource service, java.lang.String expression)
          Executes a request to a data resource.
 ResultView getResultView(javax.swing.JFrame parent)
          Gets the view which will display the results of this command.
 
Methods inherited from class uk.org.ogsadai.client.databrowser.commands.Command
actionPerformed, updateObservers
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
See Also:
Constant Field Values
Constructor Detail

SQLQueryCommand

public SQLQueryCommand(DBQueryController controller)
Method Detail

executeRequest

public java.lang.Object executeRequest(DBDataResource service,
                                       java.lang.String expression)
                                throws java.lang.Exception
Description copied from class: Command
Executes a request to a data resource.

Specified by:
executeRequest in class Command
Parameters:
service - The data resource to which to send the request.
expression - The query expression to send.
Returns:
A object whose actual type is dependent on the type of command.
Throws:
java.lang.Exception - If a problem is encountered when executing the request.

getResultView

public ResultView getResultView(javax.swing.JFrame parent)
Description copied from class: Command
Gets the view which will display the results of this command.

Specified by:
getResultView in class Command
Parameters:
parent - The parent frame.
Returns:
The view which will display the command's results.