Package net.hydromatic.quidem
Interface Command
-
- All Known Implementing Classes:
AbstractCommand,Quidem.SqlCommand
public interface CommandCommand.- See Also:
AbstractCommand,CommandHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceCommand.ContextExecution context for a command.static interfaceCommand.ResultChecker
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Stringdescribe(Command.Context x)Returns a string describing this command.voidexecute(Command.Context x, boolean execute)Executes this command.default @Nullable Commandmerge(Command previousCommand)Merges this command with the previous command.
-
-
-
Method Detail
-
describe
String describe(Command.Context x)
Returns a string describing this command.For example: "OkCommand [sql: select * from emp]" or "SkipCommand".
- Parameters:
x- Execution context
-
execute
void execute(Command.Context x, boolean execute) throws Exception
Executes this command.- Parameters:
x- Execution contextexecute- Whether to execute (false if execution is disabled, say by an 'if')- Throws:
Exception- if command fails
-
-