|Programmatically obtain SQL statements emitted by EclipseLink [message #653989]
||Sat, 12 February 2011 15:16
| Doug Gschwind
Registered: July 2009
I am using EclipseLink 2.0 and trying to determine solutions for programmatically obtaining the SQL statements that are emitted by EclipseLink to be executed by the database. Ideally, the solution would work regardless of SQL logging level, as well as regardless if a JP QL, native query, named query, native named query, stored procedure, etc. was invoked via EclipseLink.
I found the following thread where James weighed in and described one solution :
I am wondering if there are alternatives (e.g. listeners, AOP) that would lend itself to a more general and once and only once solution that would allow me to obtain the SQL String emitted to the database by EclipseLink, irrespective of the means to get to that point.
Any ideas would be appreciated.
Powered by FUDForum
. Page generated in 0.01341 seconds