org.sqlproc.engine.impl
Class SqlEmptyMonitor

java.lang.Object
  extended by org.sqlproc.engine.impl.SqlEmptyMonitor
All Implemented Interfaces:
SqlMonitor

public class SqlEmptyMonitor
extends Object
implements SqlMonitor

The empty implementation of SqlMonitor interface.

Author:
Vladimir Hudec

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.sqlproc.engine.SqlMonitor
SqlMonitor.Runner
 
Constructor Summary
SqlEmptyMonitor()
           
 
Method Summary
<E> E
run(SqlMonitor.Runner runner, Class<E> resultClass)
          The SQLMonitor visitor method called from inside the main execution methods in SqlCrudEngine and SqlCrudEngine.
<E> List<E>
runList(SqlMonitor.Runner runner, Class<E> resultClass)
          The SQLMonitor visitor method called from inside the main execution methods in SqlQueryEngine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlEmptyMonitor

public SqlEmptyMonitor()
Method Detail

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


Copyright © 2011. All Rights Reserved.