org.sqlproc.engine.hibernate
Class HibernateEngineFactory

java.lang.Object
  extended by org.sqlproc.engine.SqlSimpleFactory
      extended by org.sqlproc.engine.hibernate.HibernateEngineFactory
All Implemented Interfaces:
SqlEngineFactory

public class HibernateEngineFactory
extends SqlSimpleFactory

The implementation of the SqlEngineFactory optimized for the Hibernate 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.hibernate.HibernateEngineFactory" 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

Field Summary
 
Fields inherited from class org.sqlproc.engine.SqlSimpleFactory
pluginFactory
 
Constructor Summary
HibernateEngineFactory()
          Creates a new instance with default values for the Hibernate stack.
 
Method Summary
 
Methods inherited from class org.sqlproc.engine.SqlSimpleFactory
addCustomType, getCheckedCrudEngine, getCheckedProcedureEngine, getCheckedQueryEngine, getCrudEngine, getCustomTypes, getFilter, getLoader, getMetaFilesNames, getMetaStatements, getMonitorFactory, getOnlyStatements, getPluginFactory, getProcedureEngine, getQueryEngine, getTypeFactory, init, isJdbc, setCustomTypes, setCustomTypes, setFilter, setJdbc, setMetaFilesNames, setMetaFilesNames, setMetaStatements, setMonitorFactory, setOnlyStatements, setPluginFactory, setTypeFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateEngineFactory

public HibernateEngineFactory()
Creates a new instance with default values for the Hibernate stack.



Copyright © 2013. All Rights Reserved.