Package org.sqlproc.engine.spring
Class SpringSessionFactory
java.lang.Object
org.sqlproc.engine.spring.SpringSessionFactory
- All Implemented Interfaces:
SqlSessionFactory
The simple implementation of the factory
SqlSessionFactory
for the Spring stack.
For more info please see the Tutorials.
- Author:
- Vladimir Hudec
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.springframework.jdbc.core.JdbcTemplate
The Spring JdbcTemplate, the central class for all Spring database operations.private String
The name of the database related to this session. -
Constructor Summary
ConstructorsConstructorDescriptionSpringSessionFactory
(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) Creates a new instance.SpringSessionFactory
(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, String name) Creates a new instance. -
Method Summary
-
Field Details
-
jdbcTemplate
private org.springframework.jdbc.core.JdbcTemplate jdbcTemplateThe Spring JdbcTemplate, the central class for all Spring database operations. -
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
Creates a new instance.- Parameters:
jdbcTemplate
- the Spring JdbcTemplatename
- the name of the database related to this session
-
-
Method Details
-
getSqlSession
- Specified by:
getSqlSession
in interfaceSqlSessionFactory
-