- public static String getMappedStatementSQL(String id, SqlMapClientDaoSupport dao) {
- String sql = null;
- SqlMapClientImpl sqlmap = (SqlMapClientImpl)dao.getSqlMapClient();
- MappedStatement stmt = sqlmap.getMappedStatement(id);
- StaticSql staticSql = (StaticSql)stmt.getSql();
- sql = staticSql.getSql(null, null);
- return sql;
- }
如何ibatis通过id获得sql?
最新推荐文章于 2022-01-29 11:19:32 发布