Package net.ontopia.persistence.jdbcspy
Class SpyStats
- java.lang.Object
-
- net.ontopia.persistence.jdbcspy.SpyStats
-
public class SpyStats extends Object
INTERNAL.
-
-
Field Summary
Fields Modifier and Type Field Description protected QueryProfiler
profiler
-
Constructor Summary
Constructors Constructor Description SpyStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
connectionClose(SpyConnection conn, long startTime, long endTime)
protected void
connectionCommit(SpyConnection conn, long startTime, long endTime)
protected void
connectionRollback(SpyConnection conn, long startTime, long endTime)
protected void
generateReport(Writer out)
protected void
preparedExecute(SpyPreparedStatement stm, long startTime, long endTime)
protected void
preparedExecuteQuery(SpyPreparedStatement stm, long startTime, long endTime)
protected void
preparedExecuteUpdate(SpyPreparedStatement stm, int affectedSize, long startTime, long endTime)
protected void
resultNext(SpyResultSet rs, boolean hasNext, long startTime, long endTime)
protected void
statementExecute(SpyStatement stm, String sql, long startTime, long endTime)
protected void
statementExecuteBatch(SpyStatement stm, String sql, int batchSize, long startTime, long endTime)
protected void
statementExecuteQuery(SpyStatement stm, String sql, long startTime, long endTime)
protected void
statementExecuteUpdate(SpyStatement stm, String sql, int affectedSize, long startTime, long endTime)
-
-
-
Field Detail
-
profiler
protected QueryProfiler profiler
-
-
Method Detail
-
connectionCommit
protected void connectionCommit(SpyConnection conn, long startTime, long endTime)
-
connectionRollback
protected void connectionRollback(SpyConnection conn, long startTime, long endTime)
-
connectionClose
protected void connectionClose(SpyConnection conn, long startTime, long endTime)
-
preparedExecute
protected void preparedExecute(SpyPreparedStatement stm, long startTime, long endTime)
-
preparedExecuteQuery
protected void preparedExecuteQuery(SpyPreparedStatement stm, long startTime, long endTime)
-
preparedExecuteUpdate
protected void preparedExecuteUpdate(SpyPreparedStatement stm, int affectedSize, long startTime, long endTime)
-
statementExecute
protected void statementExecute(SpyStatement stm, String sql, long startTime, long endTime)
-
statementExecuteQuery
protected void statementExecuteQuery(SpyStatement stm, String sql, long startTime, long endTime)
-
statementExecuteUpdate
protected void statementExecuteUpdate(SpyStatement stm, String sql, int affectedSize, long startTime, long endTime)
-
statementExecuteBatch
protected void statementExecuteBatch(SpyStatement stm, String sql, int batchSize, long startTime, long endTime)
-
resultNext
protected void resultNext(SpyResultSet rs, boolean hasNext, long startTime, long endTime)
-
generateReport
protected void generateReport(Writer out) throws IOException
- Throws:
IOException
-
-