Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.sqlproc.engine.spring;
 
The simple implementation of the factory org.sqlproc.engine.SqlSessionFactory for the Spring stack.

For more info please see the Tutorials.

Author(s):
Vladimir Hudec
public class SpringSessionFactory implements SqlSessionFactory {

    
The Spring JdbcTemplate, the central class for all Spring database operations.
    private JdbcTemplate jdbcTemplate;

    
Creates a new instance.

Parameters:
jdbcTemplate the Spring JdbcTemplate
    public SpringSessionFactory(JdbcTemplate jdbcTemplate) {
        super();
        this. = jdbcTemplate;
    }

    
    @Override
    public SqlSession getSqlSession() {
        return new SpringSimpleSession();
    }
New to GrepCode? Check out our FAQ X