Package | Description |
---|---|
io.jdev.miniprofiler.sql | |
io.jdev.miniprofiler.sql.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.
|
Modifier and Type | Method and Description |
---|---|
void |
ProfilingSpyLogDelegator.connectionClosed(Spy spy) |
void |
ProfilingSpyLogDelegator.connectionOpened(Spy spy) |
void |
ProfilingSpyLogDelegator.constructorReturned(Spy spy,
java.lang.String s) |
void |
ProfilingSpyLogDelegator.exceptionOccured(Spy spy,
java.lang.String s,
java.lang.Exception e,
java.lang.String s2,
long l) |
void |
ProfilingSpyLogDelegator.methodReturned(Spy spy,
java.lang.String s,
java.lang.String s2) |
void |
ProfilingSpyLogDelegator.sqlOccured(Spy spy,
java.lang.String s,
java.lang.String s2) |
void |
ProfilingSpyLogDelegator.sqlTimingOccured(Spy spy,
long time,
java.lang.String method,
java.lang.String sql) |
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
SpyLogDelegator.connectionClosed(Spy spy)
Called whenever a connection spy is closed.
|
void |
SpyLogDelegator.connectionOpened(Spy spy)
Called whenever a new connection spy is created.
|
void |
SpyLogDelegator.constructorReturned(Spy spy,
java.lang.String constructionInfo)
Called when a spied upon object is constructed.
|
void |
SpyLogDelegator.exceptionOccured(Spy spy,
java.lang.String methodCall,
java.lang.Exception e,
java.lang.String sql,
long execTime)
Called when a spied upon method throws an Exception.
|
void |
SpyLogDelegator.methodReturned(Spy spy,
java.lang.String methodCall,
java.lang.String returnMsg)
Called when spied upon method call returns.
|
void |
SpyLogDelegator.sqlOccured(Spy spy,
java.lang.String methodCall,
java.lang.String sql)
Special call that is called only for JDBC method calls that contain SQL.
|
void |
SpyLogDelegator.sqlTimingOccured(Spy spy,
long execTime,
java.lang.String methodCall,
java.lang.String sql)
Similar to sqlOccured, but reported after SQL executes and used to report timing stats on the SQL
|