|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--uk.org.ogsadai.client.databrowser.commands.Command
Encapulates commands to be sent to the database. Commands are essentially queries or updates.
Field Summary | |
protected DBQueryController |
mController
Controller to use when executing the command. |
Fields inherited from class java.util.Observable |
|
Constructor Summary | |
Command(DBQueryController controller)
Constructor |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent event)
|
abstract java.lang.Object |
executeRequest(DBDataResource resource,
java.lang.String expression)
Executes a request to a data resource. |
abstract ResultView |
getResultView(javax.swing.JFrame parent)
Gets the view which will display the results of this command. |
void |
updateObservers(java.lang.Object obj)
Notifies observers. |
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 |
protected DBQueryController mController
Constructor Detail |
public Command(DBQueryController controller)
controller
- Method Detail |
public abstract java.lang.Object executeRequest(DBDataResource resource, java.lang.String expression) throws java.lang.Exception
resource
- The data resource to which to send the request.expression
- The query expression to send.
java.lang.Exception
- If a problem is encountered when executing the request.public abstract ResultView getResultView(javax.swing.JFrame parent)
parent
- The parent frame.
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public void updateObservers(java.lang.Object obj)
obj
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |