org.sqlproc.engine.jdbc
Class JdbcEngineFactory
java.lang.Object
org.sqlproc.engine.SqlSimpleFactory
org.sqlproc.engine.jdbc.JdbcEngineFactory
- All Implemented Interfaces:
- SqlEngineFactory
public class JdbcEngineFactory
- extends SqlSimpleFactory
The implementation of the 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.
- Author:
- Vladimir Hudec
|
Constructor Summary |
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. |
| Methods inherited from class org.sqlproc.engine.SqlSimpleFactory |
addCustomType, getCheckedCrudEngine, getCheckedProcedureEngine, getCheckedQueryEngine, getCheckedStaticCrudEngine, getCheckedStaticProcedureEngine, getCheckedStaticQueryEngine, getCrudEngine, getCustomTypes, getDynamicCrudEngine, getDynamicEngines, getDynamicNames, getDynamicProcedureEngine, getDynamicQueryEngine, getEngines, getFilter, getLoader, getMetaFilesNames, getMetaStatements, getMonitorFactory, getNames, getOnlyStatements, getPluginFactory, getProcedureEngine, getQueryEngine, getStaticCrudEngine, getStaticProcedureEngine, getStaticQueryEngine, getTypeFactory, getValidatorFactory, init, init0, isJdbc, isLazyInit, setCustomTypes, setCustomTypes, setFilter, setJdbc, setLazyInit, setMetaFilesNames, setMetaFilesNames, setMetaStatements, setMonitorFactory, setOnlyStatements, setPluginFactory, setTypeFactory, setValidatorFactory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdbcEngineFactory
public JdbcEngineFactory()
- Creates a new instance with default values for the JDBC stack.
JdbcEngineFactory
public JdbcEngineFactory(boolean lazyInit)
- Creates a new instance with default values for the JDBC stack.
- Parameters:
lazyInit - this flag indicates to speed up the initialization process.
Copyright © 2014. All rights reserved.