Class StatementExecutor


  • public class StatementExecutor
    extends Object
    A class that parses and executes CohQL statements read from an instance of a Reader.
    Author:
    jk 2014.08.06
    • Constructor Detail

      • StatementExecutor

        public StatementExecutor()
        Create a StatementExecutor
    • Method Detail

      • execute

        public Object execute​(Reader reader,
                              ExecutionContext ctx)
        Parse and execute all of the CohQL statements read from the specified Reader.
        Parameters:
        reader - the Reader containing the statements to execute
        ctx - the ExecutionContext that will be used
        Returns:
        the result of the last statement executed