Save This Page
Home » commons-dbcp-1.2.2-src » org.apache.commons » dbcp » [javadoc | source]
org.apache.commons.dbcp
public class: AbandonedTrace [javadoc | source]
java.lang.Object
   org.apache.commons.dbcp.AbandonedTrace

Direct Known Subclasses:
    PoolGuardConnectionWrapper, PoolGuardConnectionWrapper, PoolablePreparedStatement, DelegatingCallableStatement, DelegatingResultSet, DelegatingStatement, DelegatingPreparedStatement, DelegatingConnection, PoolablePreparedStatementStub, PooledTestObject, PoolingConnection, PoolableConnection

Deprecated! This - will be removed in a future version of DBCP.

Tracks db connection usage for recovering and reporting abandoned db connections. The JDBC Connection, Statement, and ResultSet classes extend this class.
Constructor:
 public AbandonedTrace() 
 public AbandonedTrace(AbandonedConfig config) 
    Construct a new AbandonedTrace with no parent object.
    Parameters:
    config - AbandonedConfig
 public AbandonedTrace(AbandonedTrace parent) 
    Construct a new AbandonedTrace with a parent object.
    Parameters:
    parent - AbandonedTrace parent object
Method from org.apache.commons.dbcp.AbandonedTrace Summary:
addTrace,   clearTrace,   getConfig,   getLastUsed,   getTrace,   printStackTrace,   removeTrace,   setLastUsed,   setLastUsed,   setStackTrace
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.dbcp.AbandonedTrace Detail:
 protected  void addTrace(AbandonedTrace trace) 
      Deprecated!
    Add an object to the list of objects being traced.
 protected synchronized  void clearTrace() 
      Deprecated!
    Clear the list of objects being traced by this object.
 protected AbandonedConfig getConfig() 
      Deprecated!
    Get the abandoned config for this object.
 protected long getLastUsed() 
      Deprecated!
    Get the last time this object was used in ms.
 protected List getTrace() 
      Deprecated!
    Get a list of objects being traced by this object.
 public  void printStackTrace() 
      Deprecated!
    If logAbandoned=true, print a stack trace of the code that created this object.
 protected synchronized  void removeTrace(AbandonedTrace trace) 
      Deprecated!
    Remove a child object this object is tracing.
 protected  void setLastUsed() 
      Deprecated!
    Set the time this object was last used to the current time in ms.
 protected  void setLastUsed(long time) 
      Deprecated!
    Set the time in ms this object was last used.
 protected  void setStackTrace() 
      Deprecated!
    If logAbandoned=true generate a stack trace for this object then add this object to the parent object trace list.