Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Printing PreparedStatements to log file

 
Lisa Modglin
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read the information in the FAQ about using Debuggable to accomplish this. The article at JavaWorld said that the Debuggable package was a Java package. I don't see it in JavaDocs and I didn't see it available for download at Sun. I must be missing it somewhere. Where do I get the Debuggable package?
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The DebuggableStatment is part of the code they created for the article http://www.javaworld.com/javaworld/jw-01-2002/jw-0125-overpower-p2.html You can download it there.
 
Lisa Modglin
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. When I read and reread the article I thought they were saying it was part of Java. I have the source code now and am trying to compile it. I'm getting some errors, but I'll see if I can work through them.
 
Lisa Modglin
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That Debugger class does not implement all of the methods in PreparedStatement for newer versions of Java.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic