public interface SqlMonitor
The implementation can be based for example on the Javasimon library. The standard implementation is an empty one, which just delegates the execution to the runner, for example
public <E> List<E> runList(Runner runner, Class<E> resultClass) { return (List<E>) runner.run(); }
For more info please see the Tutorials.
Modifier and Type | Interface and Description |
---|---|
static interface |
SqlMonitor.Runner
This interface is implemented in
SqlQueryEngine and SqlCrudEngine main public methods. |
Modifier and Type | Method and Description |
---|---|
<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 . |
<E> List<E> runList(SqlMonitor.Runner runner, Class<E> resultClass)
SqlQueryEngine
.runner
- the anonymous instance of SqlMonitor.Runner
, which encapsulates the query executionresultClass
- the class used for the return values of the query execution output<E> E run(SqlMonitor.Runner runner, Class<E> resultClass)
SqlCrudEngine
and
SqlCrudEngine
.runner
- the anonymous instance of SqlMonitor.Runner
, which encapsulates the query executionresultClass
- the class used for the return value of the query execution outputCopyright © 2014. All Rights Reserved.