赞
踩
程序中获取Mapper接口实例的调用过程
//注解Autowired时,通过getObject()获取对应接口实例Statement org.apache.ibatis.executor.statement.StatementHandler.prepare(Connection connection, Integer transactionTimeout) throws SQLException
//为statement设置参数
void org.apache.ibatis.executor.statement.PreparedStatementHandler.parameterize(Statement statement) throws SQLException
void org.apache.ibatis.scripting.defaults.DefaultParameterHandler.setParameters(PreparedStatement ps)
void org.apache.ibatis.type.TypeHandler.setParameter(PreparedStatement ps, int i, T parameter, JdbcType jdbcType) throws SQLException
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。