KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > stat > CollectionStatistics


1 //$Id: CollectionStatistics.java,v 1.8 2005/06/09 06:33:06 oneovthafew Exp $
2
package org.hibernate.stat;
3
4
5 /**
6  * Collection related statistics
7  *
8  * @author Gavin King
9  */

10 public class CollectionStatistics extends CategorizedStatistics {
11     
12     CollectionStatistics(String JavaDoc role) {
13         super(role);
14     }
15     
16     long loadCount;
17     long fetchCount;
18     long updateCount;
19     long removeCount;
20     long recreateCount;
21     
22     public long getLoadCount() {
23         return loadCount;
24     }
25     public long getFetchCount() {
26         return fetchCount;
27     }
28     public long getRecreateCount() {
29         return recreateCount;
30     }
31     public long getRemoveCount() {
32         return removeCount;
33     }
34     public long getUpdateCount() {
35         return updateCount;
36     }
37
38     public String JavaDoc toString() {
39         return new StringBuffer JavaDoc()
40             .append("CollectionStatistics")
41             .append("[loadCount=").append(this.loadCount)
42             .append(",fetchCount=").append(this.fetchCount)
43             .append(",recreateCount=").append(this.recreateCount)
44             .append(",removeCount=").append(this.removeCount)
45             .append(",updateCount=").append(this.updateCount)
46             .append(']')
47             .toString();
48     }
49 }
Popular Tags