com.mysql.jdbc
Class Debug

java.lang.Object
  extended bycom.mysql.jdbc.Debug

public class Debug
extends java.lang.Object

The Debug class allows debug messages on a per-class basis.

The user issues a trace() call, listing the classes they wish to debug.


Constructor Summary
Debug()
           
 
Method Summary
static void methodCall(java.lang.Object source, java.lang.String method, java.lang.Object[] args)
          Trace a method call.
static void msg(java.lang.Object source, java.lang.String message)
          Log a message.
static void returnValue(java.lang.Object source, java.lang.String method, java.lang.Object value)
          Trace a method call.
static void trace(java.lang.String classList)
          Set the classes to trace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Debug

public Debug()
Method Detail

methodCall

public static void methodCall(java.lang.Object source,
                              java.lang.String method,
                              java.lang.Object[] args)
Trace a method call.

If the user has registered in interest in the Class of Source, then the Source class can trace method calls through this method.

Parameters:
source - the Object issuing the methodCall() method
method - the name of the Method
args - a list of arguments

msg

public static void msg(java.lang.Object source,
                       java.lang.String message)
Log a message.

If the user has registered in interest in the Class of Source, then the Source class can trace return calls through this method.

Parameters:
source - the Object issuing the msg() method
message - the name of the method

returnValue

public static void returnValue(java.lang.Object source,
                               java.lang.String method,
                               java.lang.Object value)
Trace a method call.

If the user has registered in interest in the Class of Source, then the Source class can trace return calls through this method.

Parameters:
source - the Object issuing the returnValue() method
method - the name of the method
value - the return value

trace

public static void trace(java.lang.String classList)
Set the classes to trace.

Parameters:
classList - the list of classes to trace, separated by colons or the keyword "ALL" to trace all classes that use the Debug class.