I do not know any direct way to do this, but you can start for example SQL server profiler and monitor the statement that is going to be executed in the database.
Maybe you could enable logging in the
JDBC driver level and see the prepared statement . to enable logging take a look at your driver manual and documenation.