Interface 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 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.