KickJava   Java API By Example, From Geeks To Geeks.

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


1 package jodd.db.profile;
2
3 /**
4  * Holder for profile data. Objects of this class are sent to
5  * callback object.
6  *
7  * @see SqlUtilProfiler
8  */

9 public class SqlProfileData {
10
11     private long queryTime;
12     /**
13      * Sets current milliseconds just before query was executed.
14      *
15      * @param v
16      */

17     void setQueryTime(long v) {
18         queryTime = v;
19     }
20     /**
21      * Returns milliseconds of the moment just before query was executed.
22      *
23      * @return query time in ms.
24      */

25     public long getQueryTime() {
26         return queryTime;
27     }
28
29
30     private long duration;
31     /**
32      * Sets query duration in ms.
33      *
34      * @param v
35      */

36     void setDuration(long v) {
37         duration = v;
38     }
39     /**
40      * Returns query duration in ms.
41      *
42      * @return query duration in ms.
43      */

44     public long getDuration() {
45         return duration;
46     }
47
48
49     private String sqlquery;
50     /**
51      * Sets executed sql query.
52      *
53      * @param v
54      */

55     void setSqlQuery(String v) {
56         sqlquery = v;
57     }
58
59     /**
60      * Returns sql query that was executed.
61      *
62      * @return sql query
63      */

64     public String getSqlQuery() {
65         return sqlquery;
66     }
67     
68     
69
70 }
71
Popular Tags