Есть ли способ получить выполненный запрос iBatis? Я хочу повторно использовать запрос для запроса UNION.
Например:
<sqlMap namespace="userSQLMap">
<select id="getUser" resultClass="UserPackage.User">
SELECT username,
password
FROM table
WHERE id=#value#
</select>
</sqlMap>
И когда я выполняю запрос через
int id = 1
List<User> userList = queryDAO.executeForObjectList("userSQLMap.getUser",id)
Я хочу получить SELECT username, password FROM table WHERE id=1
Есть ли способ получить запрос?
Спасибо.