org.apache.commons.dbcp
Class AbandonedTrace

java.lang.Object
  extended by org.apache.commons.dbcp.AbandonedTrace
Direct Known Subclasses:
DelegatingConnection, DelegatingDatabaseMetaData, DelegatingResultSet, DelegatingStatement

public class AbandonedTrace
extends java.lang.Object

Tracks db connection usage for recovering and reporting abandoned db connections. The JDBC Connection, Statement, and ResultSet classes extend this class.

Version:
$Revision: 899987 $ $Date: 2010-01-16 11:51:16 -0500 (Sat, 16 Jan 2010) $
Author:
Glenn L. Nielsen

Constructor Summary
AbandonedTrace()
          Create a new AbandonedTrace without config and without doing abandoned tracing.
AbandonedTrace(AbandonedConfig config)
          Construct a new AbandonedTrace with no parent object.
AbandonedTrace(AbandonedTrace parent)
          Construct a new AbandonedTrace with a parent object.
 
Method Summary
 void printStackTrace()
          Prints a stack trace of the code that created this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbandonedTrace

public AbandonedTrace()
Create a new AbandonedTrace without config and without doing abandoned tracing.


AbandonedTrace

public AbandonedTrace(AbandonedConfig config)
Construct a new AbandonedTrace with no parent object.

Parameters:
config - AbandonedConfig

AbandonedTrace

public AbandonedTrace(AbandonedTrace parent)
Construct a new AbandonedTrace with a parent object.

Parameters:
parent - AbandonedTrace parent object
Method Detail

printStackTrace

public void printStackTrace()
Prints a stack trace of the code that created this object.



Copyright © 2001-2004 Apache Software Foundation. Documenation generated December 5 2010.