Get the iBatis source and look inside the kitchen for the following class:
com\ibatis\sqlmap\engine\execution\SqlExecutor
As its name suggests, this class executes sql statements, e.g.:
public void executeQuery(RequestScope request, Connection conn, String
sql, Object[] parameters,
int skipResults, int maxResults,
RowHandlerCallback callback)
throws SQLException
You can use this class to cook up your own version.
Greetings,
Hans.
Lurtz Ugluk wrote:
How Can I get the sql statement that de iBatis
execute?
I need the sql statement at runtime to create a
String and save it.
Thanks.