Class AbstractQueryPlusStatementBuilder.AbstractStatement
- java.lang.Object
-
- com.tangosol.coherence.dslquery.queryplus.AbstractQueryPlusStatementBuilder.AbstractStatement
-
- All Implemented Interfaces:
Statement
- Direct Known Subclasses:
CommandsStatementBuilder.CommandsQueryPlusStatement,ExtendedLanguageStatementBuilder.ExtendedLanguageQueryPlusStatement,HelpStatementBuilder.HelpQueryPlusStatement,SanityCheckStatementBuilder.SanityCheckQueryPlusStatement,ServicesStatementBuilder.ServicesQueryPlusStatement,SetTimeoutStatementBuilder.SetTimeoutStatement,TraceStatementBuilder.TraceQueryPlusStatement,WheneverStatementBuilder.WheneverQueryPlusStatement
- Enclosing class:
- AbstractQueryPlusStatementBuilder
public abstract class AbstractQueryPlusStatementBuilder.AbstractStatement extends Object implements Statement
An abstract base class that allows sub classes to implement the applicable methods onStatement.
-
-
Constructor Summary
Constructors Constructor Description AbstractStatement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetExecutionConfirmation(ExecutionContext ctx)Return a string that will be used as a question to confirm execution of a statement.voidsanityCheck(ExecutionContext ctx)Perform sanity checks on the statement that will be executed.voidshowPlan(PrintWriter out)Output to the providedPrintWritera human readable trace of the actions that will be taken by this statement if or when executed.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.tangosol.coherence.dslquery.Statement
execute, executeAsync, isManagingTimeout
-
-
-
-
Method Detail
-
sanityCheck
public void sanityCheck(ExecutionContext ctx)
Description copied from interface:StatementPerform sanity checks on the statement that will be executed.Implementations can fail sanity checking by throwing an unchecked exception (RuntimeException).
- Specified by:
sanityCheckin interfaceStatement- Parameters:
ctx- thecontextto use
-
showPlan
public void showPlan(PrintWriter out)
Description copied from interface:StatementOutput to the providedPrintWritera human readable trace of the actions that will be taken by this statement if or when executed.
-
getExecutionConfirmation
public String getExecutionConfirmation(ExecutionContext ctx)
Description copied from interface:StatementReturn 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:
getExecutionConfirmationin interfaceStatement- Parameters:
ctx- thecontextto use- Returns:
- a String that will be used to confirm execution of a statement
-
-