org.sqlproc.engine.spring
Class SpringSessionFactory

java.lang.Object
  extended by 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.
 
Method Summary
 SqlSession getSqlSession()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jdbcTemplate

private org.springframework.jdbc.core.JdbcTemplate jdbcTemplate
The Spring JdbcTemplate, the central class for all Spring database operations.

Constructor Detail

SpringSessionFactory

public SpringSessionFactory(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
Creates a new instance.

Parameters:
jdbcTemplate - the Spring JdbcTemplate
Method Detail

getSqlSession

public SqlSession getSqlSession()

Specified by:
getSqlSession in interface SqlSessionFactory


Copyright © 2015. All rights reserved.