Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.sqlproc.engine.spring;
 
The implementation of the org.sqlproc.engine.SqlEngineFactory optimized for the Spring stack.

It's suitable mainly for the Spring DI based configuration, like the next one for the new loader org.sqlproc.engine.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 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(s):
Vladimir Hudec
public class SpringEngineFactory extends SqlSimpleFactory {

    
Creates a new instance with default values for the Spring stack.
    public SpringEngineFactory() {
        this(false);
    }

    
Creates a new instance with default values for the Spring stack.

Parameters:
lazyInit this flag indicates to speed up the initialization process.
    public SpringEngineFactory(boolean lazyInit) {
        super(lazyInit);
        setJdbc(true);
        setTypeFactory(JdbcTypeFactory.getInstance());
    }
New to GrepCode? Check out our FAQ X