|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlproc.engine.SqlEngine
public abstract class SqlEngine
Common ancestor for SqlQueryEngine and SqlCrudEngine.
For more info please see the Tutorials.
| Field Summary | |
|---|---|
protected Map<String,Object> |
features
Configuration of the SQL Processor using map of features. |
protected org.slf4j.Logger |
logger
The internal slf4j logger. |
protected SqlMappingRule |
mapping
The pre-compiled mapping rule, which is an SQL execution result to Java output classes mapping prescription. |
protected SqlMonitor |
monitor
Monitor for the runtime statistics gathering. |
protected String |
name
Name of the META SQL query or statement, which uniquely identifies this instance. |
protected SqlPluginFactory |
pluginFactory
The factory for the SQL Processor plugins. |
protected SqlMetaStatement |
statement
The pre-compiled META SQL query or statement. |
protected SqlTypeFactory |
typeFactory
The factory for the META types construction. |
| Constructor Summary | |
|---|---|
SqlEngine(String name,
SqlMetaStatement statement,
SqlMappingRule mapping,
SqlMonitor monitor,
Map<String,Object> features,
SqlTypeFactory typeFactory,
SqlPluginFactory pluginFactory)
Creates a new instance of the SqlEngine from one META SQL statement and one SQL Mapping rule instance. |
|
| Method Summary | |
|---|---|
(package private) int |
getFirstResult(SqlControl sqlControl)
The helper to prevent the NPE |
(package private) int |
getMaxResults(SqlControl sqlControl)
The helper to prevent the NPE |
(package private) int |
getMaxTimeout(SqlControl sqlControl)
The helper to prevent the NPE |
(package private) Map<String,Class<?>> |
getMoreResultClasses(SqlControl sqlControl)
The helper to prevent the NPE |
(package private) SqlOrder |
getOrder(SqlControl sqlControl)
The helper to prevent the NPE |
(package private) Object |
getStaticInputValues(SqlControl sqlControl)
The helper to prevent the NPE |
void |
setFeature(String name,
Object value)
Sets the optional feature in the runtime. |
void |
unsetFeature(String name)
Clears the optional feature in the runtime. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
protected String name
protected SqlMetaStatement statement
protected SqlMappingRule mapping
protected Map<String,Object> features
protected SqlMonitor monitor
protected SqlTypeFactory typeFactory
JdbcTypeFactory
.
protected SqlPluginFactory pluginFactory
| Constructor Detail |
|---|
public SqlEngine(String name,
SqlMetaStatement statement,
SqlMappingRule mapping,
SqlMonitor monitor,
Map<String,Object> features,
SqlTypeFactory typeFactory,
SqlPluginFactory pluginFactory)
SqlProcessorLoader,
which is able to read all statements definitions from an external meta statements file and create the named
SqlEngine instances. Also an external SQL Monitor for the runtime statistics gathering can be engaged.
name - the name of this SQL Engine instancestatement - the pre-compiled META SQL statementmapping - the pre-compiled SQL mapping rulemonitor - the SQL Monitor for the runtime statistics gatheringfeatures - the optional SQL Processor featurestypeFactory - the factory for the META types constructionpluginFactory - the factory for the SQL Processor plugins| Method Detail |
|---|
public void setFeature(String name,
Object value)
name - the name of the optional featurevalue - the value of the optional featurepublic void unsetFeature(String name)
name - the name of the optional featureObject getStaticInputValues(SqlControl sqlControl)
sqlControl - the compound parameters controlling the META SQL execution
int getMaxTimeout(SqlControl sqlControl)
sqlControl - the compound parameters controlling the META SQL execution
int getFirstResult(SqlControl sqlControl)
sqlControl - the compound parameters controlling the META SQL execution
int getMaxResults(SqlControl sqlControl)
sqlControl - the compound parameters controlling the META SQL execution
SqlOrder getOrder(SqlControl sqlControl)
sqlControl - the compound parameters controlling the META SQL execution
Map<String,Class<?>> getMoreResultClasses(SqlControl sqlControl)
sqlControl - the compound parameters controlling the META SQL execution
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||