public class JdbcEngineFactory extends SqlDefaultFactory
SqlEngineFactory optimized for the JDBC 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.jdbc.JdbcEngineFactory" 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 engine
SqlQueryEngine sqlEngine = sqlFactory.getQueryEngine("ALL");
or the next code to obtain an instance of the SQL CRUD engine
SqlCrudEngine sqlEngine = sqlFactory.getCrudEngine("ALL");
For more info please see the Tutorials.
SqlDefaultFactory.SqlThreadPoolExecutorlogger, pluginFactory| Constructor and Description |
|---|
JdbcEngineFactory()
Creates a new instance with default values for the JDBC stack.
|
JdbcEngineFactory(boolean lazyInit)
Creates a new instance with default values for the JDBC stack.
|
JdbcEngineFactory(boolean lazyInit,
int asyncInitThreads)
Creates a new instance with no default values.
|
JdbcEngineFactory(int asyncInitThreads)
Creates a new instance with no default values.
|
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, setValidatorFactorypublic JdbcEngineFactory()
public JdbcEngineFactory(boolean lazyInit)
lazyInit - this flag indicates to speed up the initialization process.public JdbcEngineFactory(int asyncInitThreads)
asyncInitThreads - number of threads used for asynchronous initializationpublic JdbcEngineFactory(boolean lazyInit,
int asyncInitThreads)
lazyInit - this flag indicates to speed up the initialization process.asyncInitThreads - number of threads used for asynchronous initializationCopyright © 2017. All rights reserved.