public class DefaultSqlSessionFactory extends Object implements SqlSessionFactory
Constructor and Description |
---|
DefaultSqlSessionFactory(Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
Configuration |
getConfiguration() |
SqlSession |
openSession() |
SqlSession |
openSession(boolean autoCommit) |
SqlSession |
openSession(Connection connection) |
SqlSession |
openSession(ExecutorType execType) |
SqlSession |
openSession(ExecutorType execType,
boolean autoCommit) |
SqlSession |
openSession(ExecutorType execType,
Connection connection) |
SqlSession |
openSession(ExecutorType execType,
TransactionIsolationLevel level) |
SqlSession |
openSession(TransactionIsolationLevel level) |
public DefaultSqlSessionFactory(Configuration configuration)
public SqlSession openSession()
openSession
in interface SqlSessionFactory
public SqlSession openSession(boolean autoCommit)
openSession
in interface SqlSessionFactory
public SqlSession openSession(ExecutorType execType)
openSession
in interface SqlSessionFactory
public SqlSession openSession(TransactionIsolationLevel level)
openSession
in interface SqlSessionFactory
public SqlSession openSession(ExecutorType execType, TransactionIsolationLevel level)
openSession
in interface SqlSessionFactory
public SqlSession openSession(ExecutorType execType, boolean autoCommit)
openSession
in interface SqlSessionFactory
public SqlSession openSession(Connection connection)
openSession
in interface SqlSessionFactory
public SqlSession openSession(ExecutorType execType, Connection connection)
openSession
in interface SqlSessionFactory
public Configuration getConfiguration()
getConfiguration
in interface SqlSessionFactory
Copyright © 2010–2015 MyBatis.org. All rights reserved.