public class JdbcSessionFactory extends Object implements SqlSessionFactory
SqlSessionFactory for the JDBC stack.
For more info please see the Tutorials.
| Modifier and Type | Field and Description |
|---|---|
private Connection |
connection
The connection to the database.
|
private String |
name
The name of the database related to this session.
|
| Constructor and Description |
|---|
JdbcSessionFactory(Connection connection)
Creates a new instance.
|
JdbcSessionFactory(Connection connection,
String name)
Creates a new instance.
|
private Connection connection
private String name
public JdbcSessionFactory(Connection connection)
connection - the connection to the databasepublic JdbcSessionFactory(Connection connection, String name)
connection - the connection to the databasename - the name of the database related to this sessionpublic SqlSession getSqlSession()
getSqlSession in interface SqlSessionFactoryCopyright © 2016. All rights reserved.