Class DefaultSqlSessionFactory
java.lang.Object
org.apache.ibatis.session.defaults.DefaultSqlSessionFactory
- All Implemented Interfaces:
SqlSessionFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprotected SqlSessioncreateSqlSession(Configuration configuration, Executor executor, boolean autoCommit) private TransactionFactorygetTransactionFactoryFromEnvironment(Environment environment) openSession(boolean autoCommit) openSession(Connection connection) openSession(ExecutorType execType) openSession(ExecutorType execType, boolean autoCommit) openSession(ExecutorType execType, Connection connection) openSession(ExecutorType execType, TransactionIsolationLevel level) private SqlSessionopenSessionFromConnection(ExecutorType execType, Connection connection) private SqlSessionopenSessionFromDataSource(ExecutorType execType, TransactionIsolationLevel level, boolean autoCommit)
-
Field Details
-
configuration
-
-
Constructor Details
-
DefaultSqlSessionFactory
-
-
Method Details
-
openSession
- Specified by:
openSessionin interfaceSqlSessionFactory
-
openSession
- Specified by:
openSessionin interfaceSqlSessionFactory
-
openSession
- Specified by:
openSessionin interfaceSqlSessionFactory
-
openSession
- Specified by:
openSessionin interfaceSqlSessionFactory
-
openSession
- Specified by:
openSessionin interfaceSqlSessionFactory
-
openSession
- Specified by:
openSessionin interfaceSqlSessionFactory
-
openSession
- Specified by:
openSessionin interfaceSqlSessionFactory
-
openSession
- Specified by:
openSessionin interfaceSqlSessionFactory
-
getConfiguration
- Specified by:
getConfigurationin interfaceSqlSessionFactory
-
createSqlSession
protected SqlSession createSqlSession(Configuration configuration, Executor executor, boolean autoCommit) -
openSessionFromDataSource
private SqlSession openSessionFromDataSource(ExecutorType execType, TransactionIsolationLevel level, boolean autoCommit) -
openSessionFromConnection
-
getTransactionFactoryFromEnvironment
-
closeTransaction
-