01: package isql;
02:
03: public interface Command {
04:
05: /**
06: * Returns the strings (first word of user command) that this command handles.
07: * Most commands handle only one string. The dml commands can take
08: * multiple.
09: */
10: public String[] getCommandList();
11:
12: /** execute the command.
13: * @param _form form object containing connection
14: * @param command the word that resulted in this being called
15: * @param line the full line, this includes the command
16: */
17: public void execute(SQLForm _form, String command, String line);
18:
19: /** returns a help string that can be used in displaying
20: * error/usage.
21: */
22: public String getUsage(String command);
23:
24: }
|