KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jodd > db > profile > SqlProfilerHandler


1 package jodd.db.profile;
2
3 /**
4  * Interface of a sql profiler handler, that recieves information
5  * abput sql execution. Usually, profiler handler just logs profile data
6  * in the file, or calculate top N queries etc.
7  *
8  * @see SqlUtilProfiler
9  */

10 public interface SqlProfilerHandler {
11
12     /**
13      * Called after execute query was performed and measured.
14      *
15      * @param spd measured data
16      */

17     public void onExecuteQuery(SqlProfileData spd);
18
19     /**
20      * Called after execute update was performed and measured.
21      *
22      * @param spd measured data
23      */

24     public void onExecuteUpdate(SqlProfileData spd);
25 }
26
Popular Tags