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 QueryProfilerprofiler
-
Constructor Summary
Constructors Constructor Description SpyStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconnectionClose(SpyConnection conn, long startTime, long endTime)protected voidconnectionCommit(SpyConnection conn, long startTime, long endTime)protected voidconnectionRollback(SpyConnection conn, long startTime, long endTime)protected voidgenerateReport(Writer out)protected voidpreparedExecute(SpyPreparedStatement stm, long startTime, long endTime)protected voidpreparedExecuteQuery(SpyPreparedStatement stm, long startTime, long endTime)protected voidpreparedExecuteUpdate(SpyPreparedStatement stm, int affectedSize, long startTime, long endTime)protected voidresultNext(SpyResultSet rs, boolean hasNext, long startTime, long endTime)protected voidstatementExecute(SpyStatement stm, String sql, long startTime, long endTime)protected voidstatementExecuteBatch(SpyStatement stm, String sql, int batchSize, long startTime, long endTime)protected voidstatementExecuteQuery(SpyStatement stm, String sql, long startTime, long endTime)protected voidstatementExecuteUpdate(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
-
-