org.sqlproc.engine.spring
Class SpringSessionFactory
java.lang.Object
org.sqlproc.engine.spring.SpringSessionFactory
- All Implemented Interfaces:
- SqlSessionFactory
public class SpringSessionFactory
- extends Object
- implements SqlSessionFactory
The simple implementation of the factory SqlSessionFactory
for the Spring stack.
For more info please see the Tutorials.
- Author:
- Vladimir Hudec
Field Summary |
private org.springframework.jdbc.core.JdbcTemplate |
jdbcTemplate
The Spring JdbcTemplate, the central class for all Spring database operations. |
Constructor Summary |
SpringSessionFactory(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
Creates a new instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jdbcTemplate
private org.springframework.jdbc.core.JdbcTemplate jdbcTemplate
- The Spring JdbcTemplate, the central class for all Spring database operations.
SpringSessionFactory
public SpringSessionFactory(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
- Creates a new instance.
- Parameters:
jdbcTemplate
- the Spring JdbcTemplate
getSqlSession
public SqlSession getSqlSession()
-
- Specified by:
getSqlSession
in interface SqlSessionFactory
Copyright © 2015. All rights reserved.