• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PreparedStatement

 
Chinmay Bajikar
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have 2 q's
First is,
I have a application with a database layer.
the data base layer is responsible for firing all the db queries.
I need to implement query logging for it.
Does JDBC have any automatic query logging techniq,so that it logs all the queries fired in one txt file.
And the 2nd one is,
After a PreparedStataemtn is prepared(ie after all the params of PreparedStatement are filled with the setAPis)is there i can get the Query that is going to be fired in String format,
i.e
Can i have the same query string with actual values instead of '?'
Thanks in adv,
Chinmay...
 
Blake Minghelli
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to check out this article
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic