Interface StatementResult

All Known Implementing Classes:
DefaultStatementResult, FormattedMapStatementResult

public interface StatementResult
The result of executing a CohQL Statement.

A StatementResult encapsulates the raw result when executing a Statement allowing a generic mechanism for callers to request certain operations such as displaying the result PrintWriter (print(PrintWriter, String)).

Since:
Coherence 12.2.1
Author:
jk 2014.07.15
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final StatementResult
    A StatementResult with a null result value.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the actual result Object that this StatementResult wraps.
    void
    print(PrintWriter writer, String sTitle)
    Print the result object to the specified PrintWriter.
  • Field Details

    • NULL_RESULT

      static final StatementResult NULL_RESULT
      A StatementResult with a null result value.
  • Method Details

    • getResult

      Object getResult()
      Return the actual result Object that this StatementResult wraps.
      Returns:
      the actual result Object that this StatementResult wraps
    • print

      void print(PrintWriter writer, String sTitle)
      Print the result object to the specified PrintWriter.
      Parameters:
      writer - the PrintWriter to print the results to
      sTitle - the title to print before the results