|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Spy | |
|---|---|
| net.sf.log4jdbc | log4jdbc is a Java JDBC driver that can log SQL and/or JDBC calls (and optionally SQL timing information) for other JDBC drivers using the Simple Logging Facade For Java (SLF4J) logging system. |
| net.sf.log4jdbc.tools | |
| Uses of Spy in net.sf.log4jdbc |
|---|
| Classes in net.sf.log4jdbc that implement Spy | |
|---|---|
class |
CallableStatementSpy
Wraps a CallableStatement and reports method calls, returns and exceptions. |
class |
ConnectionSpy
Wraps a JDBC Connection and reports method calls, returns and exceptions. |
class |
PreparedStatementSpy
Wraps a PreparedStatement and reports method calls, returns and exceptions. |
class |
ResultSetSpy
Wraps a ResultSet and reports method calls, returns and exceptions. |
class |
StatementSpy
Wraps a Statement and reports method calls, returns and exceptions. |
| Methods in net.sf.log4jdbc with parameters of type Spy | |
|---|---|
void |
SpyLogDelegator.connectionClosed(Spy spy)
Called whenever a connection spy is closed. |
void |
Slf4jSpyLogDelegator.connectionClosed(Spy spy)
Called whenever a connection spy is closed. |
void |
SpyLogDelegator.connectionOpened(Spy spy)
Called whenever a new connection spy is created. |
void |
Slf4jSpyLogDelegator.connectionOpened(Spy spy)
Called whenever a new connection spy is created. |
void |
SpyLogDelegator.constructorReturned(Spy spy,
String constructionInfo)
Called when a spied upon object is constructed. |
void |
Slf4jSpyLogDelegator.constructorReturned(Spy spy,
String constructionInfo)
Called when a spied upon object is constructed. |
void |
SpyLogDelegator.exceptionOccured(Spy spy,
String methodCall,
Exception e,
String sql,
long execTime)
Called when a spied upon method throws an Exception. |
void |
Slf4jSpyLogDelegator.exceptionOccured(Spy spy,
String methodCall,
Exception e,
String sql,
long execTime)
Called when a jdbc method throws an Exception. |
void |
SpyLogDelegator.methodReturned(Spy spy,
String methodCall,
Object returnValue,
Object targetObject,
Object... methodParams)
Called when spied upon method call returns. |
void |
Slf4jSpyLogDelegator.methodReturned(Spy spy,
String methodCall,
Object returnMsg,
Object object,
Object... methodParams)
Called when a JDBC method from a Connection, Statement, PreparedStatement, CallableStatement or ResultSet returns. |
String |
SpyLogDelegator.sqlOccured(Spy spy,
String methodCall,
String sql)
Special call that is called only for JDBC method calls that contain SQL. |
String |
Slf4jSpyLogDelegator.sqlOccured(Spy spy,
String methodCall,
String sql)
Special call that is called only for JDBC method calls that contain SQL. |
String |
SpyLogDelegator.sqlOccured(Spy spy,
String methodCall,
String[] sqls)
Special call that is called only for JDBC method calls that contain SQL batches. |
String |
Slf4jSpyLogDelegator.sqlOccured(Spy spy,
String methodCall,
String[] sqls)
|
void |
SpyLogDelegator.sqlTimingOccured(Spy spy,
long execTime,
String methodCall,
String sql)
Similar to sqlOccured, but reported after SQL executes and used to report timing stats on the SQL |
void |
Slf4jSpyLogDelegator.sqlTimingOccured(Spy spy,
long execTime,
String methodCall,
String sql)
Special call that is called only for JDBC method calls that contain SQL. |
| Uses of Spy in net.sf.log4jdbc.tools |
|---|
| Methods in net.sf.log4jdbc.tools with parameters of type Spy | |
|---|---|
String |
Log4JdbcCustomFormatter.sqlOccured(Spy spy,
String methodCall,
String rawSql)
|
String |
Log4JdbcCustomFormatter.sqlOccured(Spy spy,
String methodCall,
String[] sqls)
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||