Class SQLQueryExecutor


  • public class SQLQueryExecutor
    extends java.lang.Object
    An object used to execute SQL queries against a given DatabaseConnection object. The object maintains an SQL parser object as state which is reused as necessary.

    This object is a convenient way to execute SQL queries.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static SQL sql_parser
      The SQL parser state.
    • Constructor Summary

      Constructors 
      Constructor Description
      SQLQueryExecutor()
      Constructs the executor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Table execute​(DatabaseConnection connection, SQLQuery query)
      Executes the given SQLQuery object on the given DatabaseConnection object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • sql_parser

        private static SQL sql_parser
        The SQL parser state.
    • Constructor Detail

      • SQLQueryExecutor

        public SQLQueryExecutor()
        Constructs the executor.