Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.mysql.jdbc
Class Debug  view Debug download Debug.java

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.


Field Summary
private static java.util.Hashtable CLASSES
           
private static java.lang.Object MUTEX
           
private static boolean watchAll
           
 
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
 

Field Detail

CLASSES

private static final java.util.Hashtable CLASSES

MUTEX

private static final java.lang.Object MUTEX

watchAll

private static boolean watchAll
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.


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.


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.


trace

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