| java.lang.Object isql.CommandHandler
CommandHandler | public class CommandHandler (Code) | | Class documentation.
author: rahul kumar See Also: XXX |
commandMap | Map commandMap(Code) | | a map of strings and command objects.
|
CommandHandler | public CommandHandler(SQLForm form)(Code) | | ctor/constructor.
|
execute | public void execute(String command, String line)(Code) | | execute the given command.
fetches the command object from the map, and calls execute()
passing the SQLForm object.
|
getCommandFor | public Command getCommandFor(String key)(Code) | | returns the command object for a key.
required by help() in MetadataCommand also.
|
getCommands | public Command[] getCommands()(Code) | | returns commands.
used by MetadataCommand help().
|
register | public void register(Command com)(Code) | | register the given command, by putting it in the command map
along with its command list.
|
registerAllCommands | public void registerAllCommands()(Code) | | register all the commands in the commands array.
|
|
|