DefaultSqlSession源码

2017-03-13  本文已影响0人  ywy_java

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.

上一篇 下一篇

猜你喜欢

热点阅读