Giter Site home page Giter Site logo

itwhale233 / mybatis-3-dump Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mybatis/mybatis-3

0.0 0.0 0.0 35.41 MB

MyBatis SQL mapper framework for Java

Home Page: http://mybatis.github.io/mybatis-3/

License: Apache License 2.0

Java 99.43% CSS 0.24% PLpgSQL 0.16% TSQL 0.17%

mybatis-3-dump's Introduction

结构图

Executor 类型架构图 Executor 类型架构图

流程类

构建和获取 SqlSession 实例的流程: -> 读取配置文件 -> SqlSessionFactoryBuilder.build -> DefaultSqlSessionFactory -> DefaultSqlSessionFactory.openSession -> new DefaultSqlSession

获取 Mapper 接口的流程: -> SqlSession.getMapper -> Configuration.getMapper -> MapperRegistry.getMapper -> MapperProxyFactory.newInstance -> new MapperProxy -> Proxy.newProxyInstance

对应 Mapper 接口如何查到数据的流程: (proxy) ->

基础类

判断指定的方法是否的 default 方法

// org/apache/ibatis/binding/MapperProxy.java:96
if (!m.isDefault()) {
    return new PlainMethodInvoker(new MapperMethod(mapperInterface, method, sqlSession.getConfiguration()));
    }

mybatis-3-dump's People

Contributors

hazendaz avatar emacarron avatar harawata avatar kazuki43zoo avatar dependabot[bot] avatar simonetripodi avatar renovate[bot] avatar dependabot-preview[bot] avatar jeffgbutler avatar nmaves avatar cbegin avatar awxiaoxian2020 avatar codeingboy avatar wangdx avatar christianpoitras avatar zhangshenao avatar mnesarco avatar kezhenxu94 avatar jingwenlqh avatar oliverwqcwrw avatar nothingzhl avatar kmoco2am avatar h3adache avatar paopaofish avatar peterchenhdu avatar jasonleaster avatar xdshent avatar anatoliistepaniuk avatar sogoagain avatar elfhazard avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.