《手撸Mybatis》- 类图
2023-04-21 00:00:37 37 举报
mybatis的核心类之间的关联关系。持续更新中
作者其他创作
大纲/内容
依赖
PooledConnection
- dataSource : PooledDataSource
创建
XMLConfigBuilder
+ parse() : Configuration
实现
关联
UnpooledDataSourceFactory
Environment
- id : String- transactionFactory : TransactionFactory- dataSource : DataSource
UnpooledDataSource
Connection
TypeAliasRegistry
DataSourceFactory
+ setProperties(Properties props)+ DataSource getDataSource()
SqlSessionFactoryBuilder
+ build(Reader reader) : SqlSessionFactory+ build(Configuration config) : SqlSessionFactory
TransactionFactory
DataSource
+ getConnection() : Connection
DefaultSqlSessionFactory
- config : Configuration
+ openSession : SqlSession
MapperProxyFactory<T>
font color=\"#323232\
+ newInstance(SqlSession sqlSession) : T
PooledDataSource
SqlSession
MapperRegistry
InvocationHandler
public Configuration() { typeAliasRegistry.registerAlias(\"JDBC\
SqlSessionFactory
+ openSession : SqlSession
MapperMethod
- command : SqlCommand
PooledDataSourceFactory
Configuration
+ addMappers(Class<T> type) : void+ addMappedStatement(MappedStatement ms) : void
DefaultSqlSession
+ selectOne(String statement) : T+ getMapper(Class<T> type) : T+ getConfiguration : Configuration
MapperProxy<T>
0 条评论
回复 删除
下一页