|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||
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. |
| SpringSimpleSession | The Spring stack implementation of the SQL Engine session contract. |
The adapters and proxies for the Spring stack. The simple usage can be the next one:
// by default it loads "queries.properties" file
SqlEngineFactory sqlFactory = new JdbcEngineFactory();
SqlQueryEngine sqlEngine = sqlFactory.getQueryEngine("ALL_PEOPLE");
// for the case it runs on the top of the Spring stack
ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
JdbcTemplate jdbcTemplate = context.getBean("jdbcTemplate", JdbcTemplate.class);
SqlSession session = new SpringSimpleSession(jdbcTemplate);
List<Person> list = sqlEngine.query(session, Person.class, null, SqlQueryEngine.ASC_ORDER);
For more info please see the Reference Guide or the tutorials.
|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||