log4jdbc3 1.1

net.sf.log4jdbc
Interface Spy

All Known Implementing Classes:
ConnectionSpy, ResultSetSpy, StatementSpy

public interface Spy

Common interface that all Spy classes can implement. This is used so that any class that is being spied upon can transmit generic information about itself to the whoever is doing the spying.

Author:
Arthur Blake
 

Method Summary
 String getClassType()
          Get the type of class being spied upon.
 int getConnectionNumber()
          Get the connection number.
 

Method Detail

getClassType

public String getClassType()
Get the type of class being spied upon. For example, "Statement", "ResultSet", etc.

Returns:
a description of the type of class being spied upon.

getConnectionNumber

public int getConnectionNumber()
Get the connection number. In general, this is used to track which underlying connection is being used from the database. The number will be incremented each time a new Connection is retrieved from the real underlying jdbc driver. This is useful for debugging and tracking down problems with connection pooling.

Returns:
the connection instance number.

log4jdbc3 1.1