Class QueryRecorderStatementBuilder

All Implemented Interfaces:
StatementBuilder<QueryRecorderStatementBuilder.QueryRecorderStatement>

public class QueryRecorderStatementBuilder extends AbstractStatementBuilder<QueryRecorderStatementBuilder.QueryRecorderStatement>
An implementation of a StatementBuilder that parses a CohQL term tree to produce an instance of a QueryRecorderStatementBuilder.QueryRecorderStatement.
Since:
Coherence 12.2.1
Author:
jk 2013.12.17
  • Field Details

    • EXPLAIN_INSTANCE

      public static final QueryRecorderStatementBuilder EXPLAIN_INSTANCE
      An instance of a QueryRecorderStatementBuilder that builds EXPLAIN PLAN queries.
    • TRACE_INSTANCE

      public static final QueryRecorderStatementBuilder TRACE_INSTANCE
      An instance of a QueryRecorderStatementBuilder that builds TRACE queries.
    • m_recordType

      protected QueryRecorder.RecordType m_recordType
      The type of query recorder that this builder builds.
  • Constructor Details

    • QueryRecorderStatementBuilder

      protected QueryRecorderStatementBuilder(QueryRecorder.RecordType recordType)
      Construct a QueryRecorderStatementBuilder of the specified type.
      Parameters:
      recordType - the type of query recorder to build
  • Method Details

    • realize

      public QueryRecorderStatementBuilder.QueryRecorderStatement realize(ExecutionContext ctx, NodeTerm term, List listBindVars, ParameterResolver namedBindVars)
      Description copied from interface: StatementBuilder
      Realizes an implementation of a Statement that can be executed to perform a specific CohQL command.
      Parameters:
      ctx - the ExecutionContext to use to create commands
      term - the parsed NodeTerm used to create the relevant Statement
      listBindVars - the indexed bind variables
      namedBindVars - the named bind variables
      Returns:
      an executable instance of a Statement
    • getSyntax

      public String getSyntax()
      Description copied from interface: StatementBuilder
      Return the syntax of the CohQL command.
      Returns:
      the syntax of the CohQL command
    • getDescription

      public String getDescription()
      Description copied from interface: StatementBuilder
      Return a description of the CohQL command suitable for displaying as help text.
      Returns:
      a description of the CohQL command suitable for displaying as help text