摘要:
Executor 接口是 MyBatis 最核心的接口之一,它定义了执行 SQL 语句的方法,包括查询、更新等操作: public interface Executor { ResultHandler NO_RESULT_HANDLER = null; int update(MappedStatem 阅读全文
摘要:
MyBatis StatementHandler 接口主要负责 SQL 语句的执行和参数的设置: public interface StatementHandler { Statement prepare(Connection connection, Integer transactionTimeo 阅读全文
摘要:
在 MyBatis 中,TypeHandler 接口用来给 PreparedStatement 设置参数,以及从 ResultSet 获取结果: public interface TypeHandler<T> { void setParameter(PreparedStatement ps, int 阅读全文