Class AbstractQueryPlusStatementBuilder.AbstractStatement

    • Constructor Detail

      • AbstractStatement

        public AbstractStatement()
    • Method Detail

      • sanityCheck

        public void sanityCheck​(ExecutionContext ctx)
        Description copied from interface: Statement
        Perform sanity checks on the statement that will be executed.

        Implementations can fail sanity checking by throwing an unchecked exception (RuntimeException).

        Specified by:
        sanityCheck in interface Statement
        Parameters:
        ctx - the context to use
      • showPlan

        public void showPlan​(PrintWriter out)
        Description copied from interface: Statement
        Output to the provided PrintWriter a human readable trace of the actions that will be taken by this statement if or when executed.
        Specified by:
        showPlan in interface Statement
        Parameters:
        out - the PrintWriter to write the trace to
      • getExecutionConfirmation

        public String getExecutionConfirmation​(ExecutionContext ctx)
        Description copied from interface: Statement
        Return a string that will be used as a question to confirm execution of a statement. If null is returned then no confirmation is required.
        Specified by:
        getExecutionConfirmation in interface Statement
        Parameters:
        ctx - the context to use
        Returns:
        a String that will be used to confirm execution of a statement