Logo Search packages:      
Sourcecode: henplus version File versions  Download package

int henplus::Command::execute ( SQLSession  session,
String  command,
String  parameters 
)

execute the command given. The command is given completely without the final delimiter (which would be newline or semicolon). Before this method is called, the CommandDispatcher checks with the isComplete(String) method, if this command is complete.

Parameters:
session the SQLsession this command is executed from.
command the command as string.
parameters the rest parameters following the command.
Returns:
one of SUCCESS, SYNTAX_ERROR, EXEC_FAILED to indicate the exit status of this command. On SYNTAX_ERROR, the CommandDispatcher displays a synopsis if available.

Implemented in henplus::commands::AboutCommand, henplus::commands::AliasCommand, henplus::commands::ConnectCommand, henplus::commands::DescribeCommand, henplus::commands::DriverCommand, henplus::commands::DumpCommand, henplus::commands::EchoCommand, henplus::commands::ExitCommand, henplus::commands::ExportCommand, henplus::commands::HelpCommand, henplus::commands::ImportCommand, henplus::commands::ListUserObjectsCommand, henplus::commands::LoadCommand, henplus::commands::PluginCommand, henplus::commands::properties::AbstractPropertyCommand, henplus::commands::SetCommand, henplus::commands::ShellCommand, henplus::commands::SpoolCommand, henplus::commands::SQLCommand, henplus::commands::StatusCommand, henplus::commands::TreeCommand, and henplus::SamplePlugin.

Referenced by henplus::CommandDispatcher::execute().


Generated by  Doxygen 1.6.0   Back to index