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 Details

    • jdbcTemplate

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

      private String name
      The name of the database related to this session. It's usage is implementation specific.
  • Constructor Details

    • SpringSessionFactory

      public SpringSessionFactory(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
      Creates a new instance.
      Parameters:
      jdbcTemplate - the Spring JdbcTemplate
    • SpringSessionFactory

      public SpringSessionFactory(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, String name)
      Creates a new instance.
      Parameters:
      jdbcTemplate - the Spring JdbcTemplate
      name - the name of the database related to this session
  • Method Details