org.sqlproc.engine.impl
Class SqlEmptyMonitor

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

public class SqlEmptyMonitor
extends java.lang.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
 java.lang.String runGetSql(SqlMonitor.Runner runner)
          The SQLMonitor visitor method called from inside the SqlEngine.getSql(Object, Object, SqlOrder).
<E> java.util.List<E>
runQuery(SqlMonitor.Runner runner, java.lang.Class<E> resultClass)
          The SQLMonitor visitor method called from inside the SqlEngine.query(org.hibernate.Session, Class, Object, Object, SqlOrder, int, int, int).
 int runQueryCount(SqlMonitor.Runner runner)
          The SQLMonitor visitor method called from inside the SqlEngine.queryCount(org.hibernate.Session, Object, Object, SqlOrder, int).
 
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

runQuery

public <E> java.util.List<E> runQuery(SqlMonitor.Runner runner,
                                      java.lang.Class<E> resultClass)
The SQLMonitor visitor method called from inside the SqlEngine.query(org.hibernate.Session, Class, Object, Object, SqlOrder, int, int, int).

Specified by:
runQuery 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
Returns:
the list of the resultClass instances

runQueryCount

public int runQueryCount(SqlMonitor.Runner runner)
The SQLMonitor visitor method called from inside the SqlEngine.queryCount(org.hibernate.Session, Object, Object, SqlOrder, int).

Specified by:
runQueryCount in interface SqlMonitor
Parameters:
runner - the anonymous instance of SqlMonitor.Runner, which encapsulates the queryCount execution
Returns:
the size of potential list of resultClass instances

runGetSql

public java.lang.String runGetSql(SqlMonitor.Runner runner)
The SQLMonitor visitor method called from inside the SqlEngine.getSql(Object, Object, SqlOrder).

Specified by:
runGetSql in interface SqlMonitor
Parameters:
runner - the anonymous instance of SqlMonitor.Runner, which encapsulates the getSql execution
Returns:
the SQL query command derived from the META SQL based in input parameters


Copyright © 2010. All Rights Reserved.