Package org.sqlproc.engine.spring
Class SpringEngineFactory
- java.lang.Object
-
- org.sqlproc.engine.SqlDefaultFactory
-
- org.sqlproc.engine.spring.SpringEngineFactory
-
- All Implemented Interfaces:
SqlEngineFactory
public class SpringEngineFactory extends SqlDefaultFactory
The implementation of theSqlEngineFactory
optimized for the Spring stack.It's suitable mainly for the Spring DI based configuration, like the next one for the new loader
SqlProcessorLoader
:
<beans ...> ... <bean id="sqlFactory" class="org.sqlproc.engine.spring.SpringEngineFactory" init-method="init"> <property name="metaFilesNames"> <list> <value>statements.qry</value> </list> </property> </bean> </beans>
and use the next code to obtain an instance of the SQL Query engineSqlQueryEngine sqlEngine = sqlFactory.getQueryEngine("ALL");
or the next code to obtain an instance of the SQL CRUD engineSqlCrudEngine sqlEngine = sqlFactory.getCrudEngine("ALL");
For more info please see the Tutorials.
- Author:
- Vladimir Hudec
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.sqlproc.engine.SqlDefaultFactory
SqlDefaultFactory.SqlThreadPoolExecutor
-
-
Field Summary
-
Fields inherited from class org.sqlproc.engine.SqlDefaultFactory
logger, pluginFactory
-
-
Constructor Summary
Constructors Constructor Description SpringEngineFactory()
Creates a new instance with default values for the Spring stack.SpringEngineFactory(boolean lazyInit)
Creates a new instance with default values for the Spring stack.SpringEngineFactory(boolean lazyInit, int asyncInitThreads)
Creates a new instance with no default values.SpringEngineFactory(int asyncInitThreads)
Creates a new instance with no default values.
-
Method Summary
-
Methods inherited from class org.sqlproc.engine.SqlDefaultFactory
addCustomType, getAsyncInitThreads, getCheckedCrudEngine, getCheckedProcedureEngine, getCheckedQueryEngine, getCheckedStaticCrudEngine, getCheckedStaticProcedureEngine, getCheckedStaticQueryEngine, getConfiguration, getCrudDynamicEngines, getCrudDynamicNames, getCrudEngine, getCrudEngines, getCrudNames, getCustomTypes, getDynamicCrudEngine, getDynamicProcedureEngine, getDynamicQueryEngine, getEnginesInitErrors, getEnginesInitErrorsMsg, getExecutor, getFilter, getLoader, getMetaFilesNames, getMetaStatements, getMonitorFactory, getOnlyStatements, getPluginFactory, getProcedureDynamicEngines, getProcedureDynamicNames, getProcedureEngine, getProcedureEngines, getProcedureNames, getQueryDynamicEngines, getQueryDynamicNames, getQueryEngine, getQueryEngines, getQueryNames, getStaticCrudEngine, getStaticProcedureEngine, getStaticQueryEngine, getTypeFactory, getValidatorFactory, init, init0, isAsyncInitFinished, isCollectionsAreStandardTypes, isJdbc, isLazyInit, isSkipAliasesInQqlCommand, setAsyncInitThreads, setCollectionsAreStandardTypes, setConfiguration, setCustomTypes, setCustomTypes, setExecutor, setFilter, setFilter, setJdbc, setLazyInit, setMetaFilesNames, setMetaFilesNames, setMetaStatements, setMonitorFactory, setOnlyStatements, setPluginFactory, setSkipAliasesInQqlCommand, setTypeFactory, setValidatorFactory
-
-
-
-
Constructor Detail
-
SpringEngineFactory
public SpringEngineFactory()
Creates a new instance with default values for the Spring stack.
-
SpringEngineFactory
public SpringEngineFactory(boolean lazyInit)
Creates a new instance with default values for the Spring stack.- Parameters:
lazyInit
- this flag indicates to speed up the initialization process.
-
SpringEngineFactory
public SpringEngineFactory(int asyncInitThreads)
Creates a new instance with no default values.- Parameters:
asyncInitThreads
- number of threads used for asynchronous initialization
-
SpringEngineFactory
public SpringEngineFactory(boolean lazyInit, int asyncInitThreads)
Creates a new instance with no default values.- Parameters:
lazyInit
- this flag indicates to speed up the initialization process.asyncInitThreads
- number of threads used for asynchronous initialization
-
-