《深入浅出MyBatis技术原理与实战》p150页

SqlSession内部运行图

SqlSession 内部运行-LMLPHP

四大对象在流程中的操作。

1.准备sql。StatementHandler 的prepare方法进行sql预编译。

2.设置参数。ParameterHandler设置参数。

3.执行。Executor 执行sql。

4.处理返回结果 。ResultHandler处理返回结果。

05-11 22:41