美文网首页
DefaultSqlSession源码

DefaultSqlSession源码

作者: ywy_java | 来源:发表于2017-03-13 15:23 被阅读0次

today,we talk about defaultSqlSession.this is the key class to execute the sql.
as usual,we look the field first.

field.png

except the last two field is diffcult to understand,others is easy to read how it works.ok,forget about what you can't understand,just go on.

constructor.png

here is the constructor. nothing but save all parameter.

selectOne.png

this is the function called "selectOne",you will find one single parameter function invoke the two parameter function and the two parameter function invoke the function called "selectList".so you know,let's see this function.

selectList.png

ok,here we find three overloaded function.just as the selectOne,selectList use the other funtion to simplify the progress.
finally,the result is return by excutor's query function.
i will not to introduce more functions,because they are similar.

相关文章

网友评论

      本文标题:DefaultSqlSession源码

      本文链接:https://www.haomeiwen.com/subject/logfnttx.html