Package org.sqlproc.engine.spring

The adapters and proxies for the Spring stack.

See:
          Description

Class Summary
SpringEngineFactory The implementation of the SqlEngineFactory optimized for the Spring stack.
SpringQuery The Spring stack implementation of the SQL Engine query contract.
SpringSessionFactory The simple implementation of the factory SqlSessionFactory for the Spring stack.
SpringSimpleSession The Spring stack implementation of the SQL Engine session contract.
 

Package org.sqlproc.engine.spring Description

The adapters and proxies for the Spring stack. The simple usage can be the next one:

 JdbcEngineFactory sqlFactory = new JdbcEngineFactory();
 sqlFactory.setMetaFilesNames("statements.qry"); // the meta statements file
 SqlQueryEngine sqlEngine = sqlFactory.getQueryEngine("ALL_PEOPLE");
 
 // for the case it runs on the top of the Spring stack
 ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
 SqlSessionFactory sessionFactory = context.getBean("sessionFactory", SqlSessionFactory.class);
 SqlSession session = sessionFactory.getSqlSession();
 
 List<Person> list = sqlEngine.query(session, Person.class, null, SqlQueryEngine.ASC_ORDER);
 

For more info please see the Tutorials.

Author:
Vladimir Hudec


Copyright © 2015. All rights reserved.