NOTE
MyBatis Source Architecture
MyBatis execution flow from mapper proxy through mapped statement, executor, statement handler, parameter/result handling, and caching.
This is a historical learning note and may contain outdated or incomplete understanding.
A useful MyBatis source-level model is:
- a mapper proxy turns an interface method into a mapped-statement invocation;
SqlSessiondelegates execution to anExecutor;- statement/parameter handlers prepare JDBC SQL and bind parameters;
- JDBC executes the statement;
- result-set handling maps rows into Java results;
- cache/transaction behavior surrounds the execution path as configured.
Plugin interceptors wrap selected extension points and therefore can affect correctness/performance globally.
Exact classes/methods vary by version. Depend on public extension contracts and pin source analysis to the MyBatis release actually used.