Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WrappedPreparedStatementJDK6 get SQL query.

 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a WrappedPreparedStatementJDK6 being used to which I need to make a few modifications. To start with I want to know the SQL query inside this PreparedStatement. How can I get to know this?
 
Ramon Anger
Ranch Hand
Posts: 56
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could debug your statement execution.
Maybe the method getUnderlyingStatement() from WrappedPreparedStatement contains an info on the sql statement itself but this would probably be without parameter replacement.
 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks thats what I was looking for.
The parameters could be found easily goin on a DEBUG mode.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic