Interface Command

All Known Implementing Classes:
AbstractCommand, Quidem.SqlCommand

public interface Command
Command.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Execution context for a command.
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a string describing this command.
    void
    execute(Command.Context x, boolean execute)
    Executes this command.
    default @Nullable Command
    merge(Command previousCommand)
    Merges this command with the previous command.
  • Method Details

    • 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 context
      execute - Whether to execute (false if execution is disabled, say by an 'if')
      Throws:
      Exception - if command fails
    • merge

      default @Nullable Command merge(Command previousCommand)
      Merges this command with the previous command. Returns null if merging is not possible.