Class DefaultSqlSessionFactory
- java.lang.Object
-
- org.apache.ibatis.session.defaults.DefaultSqlSessionFactory
-
- All Implemented Interfaces:
SqlSessionFactory
public class DefaultSqlSessionFactory extends java.lang.Object implements SqlSessionFactory
-
-
Field Summary
Fields Modifier and Type Field Description private Configurationconfiguration
-
Constructor Summary
Constructors Constructor Description DefaultSqlSessionFactory(Configuration configuration)
-
Method Summary
-
-
-
Field Detail
-
configuration
private final Configuration configuration
-
-
Constructor Detail
-
DefaultSqlSessionFactory
public DefaultSqlSessionFactory(Configuration configuration)
-
-
Method Detail
-
openSession
public SqlSession openSession()
- Specified by:
openSessionin interfaceSqlSessionFactory
-
openSession
public SqlSession openSession(boolean autoCommit)
- Specified by:
openSessionin interfaceSqlSessionFactory
-
openSession
public SqlSession openSession(ExecutorType execType)
- Specified by:
openSessionin interfaceSqlSessionFactory
-
openSession
public SqlSession openSession(TransactionIsolationLevel level)
- Specified by:
openSessionin interfaceSqlSessionFactory
-
openSession
public SqlSession openSession(ExecutorType execType, TransactionIsolationLevel level)
- Specified by:
openSessionin interfaceSqlSessionFactory
-
openSession
public SqlSession openSession(ExecutorType execType, boolean autoCommit)
- Specified by:
openSessionin interfaceSqlSessionFactory
-
openSession
public SqlSession openSession(java.sql.Connection connection)
- Specified by:
openSessionin interfaceSqlSessionFactory
-
openSession
public SqlSession openSession(ExecutorType execType, java.sql.Connection connection)
- Specified by:
openSessionin interfaceSqlSessionFactory
-
getConfiguration
public Configuration 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
private SqlSession openSessionFromConnection(ExecutorType execType, java.sql.Connection connection)
-
getTransactionFactoryFromEnvironment
private TransactionFactory getTransactionFactoryFromEnvironment(Environment environment)
-
closeTransaction
private void closeTransaction(Transaction tx)
-
-