Class SqlEmptyMonitor

java.lang.Object
org.sqlproc.engine.impl.SqlEmptyMonitor
All Implemented Interfaces:
SqlExtendedMonitor, SqlMonitor

public class SqlEmptyMonitor extends Object implements SqlExtendedMonitor
The empty implementation of SqlMonitor interface.
Author:
Vladimir Hudec
  • Constructor Details

    • SqlEmptyMonitor

      public SqlEmptyMonitor()
  • Method Details

    • runList

      public <E> List<E> runList(SqlMonitor.Runner runner, Class<E> resultClass)
      The SQLMonitor visitor method called from inside the main execution methods in SqlQueryEngine.
      Specified by:
      runList in interface SqlMonitor
      Parameters:
      runner - the anonymous instance of SqlMonitor.Runner, which encapsulates the query execution
      resultClass - the class used for the return values of the query execution output
      Returns:
      the list of the resultClass instances
    • run

      public <E> E run(SqlMonitor.Runner runner, Class<E> resultClass)
      The SQLMonitor visitor method called from inside the main execution methods in SqlCrudEngine and SqlCrudEngine.
      Specified by:
      run in interface SqlMonitor
      Parameters:
      runner - the anonymous instance of SqlMonitor.Runner, which encapsulates the query execution
      resultClass - the class used for the return value of the query execution output
      Returns:
      the instance of the resultClass
    • runListSql

      public <E> List<E> runListSql(SqlMonitor.Runner runner, Class<E> resultClass)
      The SQLMonitor visitor method called from inside the main execution methods in SqlQueryEngine devoted only to SQL statement execution.
      Specified by:
      runListSql in interface SqlExtendedMonitor
      Parameters:
      runner - the anonymous instance of SqlMonitor.Runner, which encapsulates the query execution
      resultClass - the class used for the return values of the query execution output
      Returns:
      the list of the resultClass instances
    • runSql

      public <E> E runSql(SqlMonitor.Runner runner, Class<E> resultClass)
      The SQLMonitor visitor method called from inside the main execution methods in SqlCrudEngine and SqlCrudEngine devoted only to SQL statement execution..
      Specified by:
      runSql in interface SqlExtendedMonitor
      Parameters:
      runner - the anonymous instance of SqlMonitor.Runner, which encapsulates the query execution
      resultClass - the class used for the return value of the query execution output
      Returns:
      the instance of the resultClass