Package net.hydromatic.quidem
Interface Command
- All Known Implementing Classes:
AbstractCommand,Quidem.SqlCommand
public interface Command
Command.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceExecution context for a command.static interface -
Method Summary
Modifier and TypeMethodDescriptionReturns a string describing this command.voidexecute(Command.Context x, boolean execute) Executes this command.default @Nullable CommandMerges this command with the previous command.
-
Method Details
-
describe
Returns a string describing this command.For example: "OkCommand [sql: select * from emp]" or "SkipCommand".
- Parameters:
x- Execution context
-
execute
Executes this command.- Parameters:
x- Execution contextexecute- Whether to execute (false if execution is disabled, say by an 'if')- Throws:
Exception- if command fails
-
merge
Merges this command with the previous command. Returns null if merging is not possible.
-