public abstract class AbstractQueryPlusStatementBuilder.AbstractStatement extends Object implements Statement
Statement
.Constructor and Description |
---|
AbstractStatement() |
Modifier and Type | Method and Description |
---|---|
String |
getExecutionConfirmation(ExecutionContext ctx)
Return a string that will be used as a question to confirm execution of
a statement.
|
void |
sanityCheck(ExecutionContext ctx)
Perform sanity checks on the statement that will be executed.
|
void |
showPlan(PrintWriter out)
Output to the provided
PrintWriter a human readable trace of the
actions that will be taken by this statement if or when executed. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, isManagingTimeout
public void sanityCheck(ExecutionContext ctx)
Statement
Implementations can fail sanity checking by throwing an unchecked exception (RuntimeException).
sanityCheck
in interface Statement
ctx
- the context
to usepublic void showPlan(PrintWriter out)
Statement
PrintWriter
a human readable trace of the
actions that will be taken by this statement if or when executed.public String getExecutionConfirmation(ExecutionContext ctx)
Statement
getExecutionConfirmation
in interface Statement
ctx
- the context
to use