Get your CodeRanch badge!*
The moose likes JDBC and the fly likes Printing PreparedStatements to log file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Printing PreparedStatements to log file" Watch "Printing PreparedStatements to log file" New topic
Author

Printing PreparedStatements to log file

Lisa Modglin
Ranch Hand

Joined: Oct 28, 2003
Posts: 46
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

Joined: Jun 13, 2000
Posts: 3340
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.


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Lisa Modglin
Ranch Hand

Joined: Oct 28, 2003
Posts: 46
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

Joined: Oct 28, 2003
Posts: 46
That Debugger class does not implement all of the methods in PreparedStatement for newer versions of Java.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Printing PreparedStatements to log file
 
Similar Threads
Which way is efficient, extending a class or creating an object.
which IDE to learn Java with?
JavaRanch style: Avoiding use of break /return in the middle of a method
Getting debug to work on Eclipse
DebuggableStatement - is it part of standard JDK