1 package org.hibernate.stat; 3 4 5 10 public class CollectionStatistics extends CategorizedStatistics { 11 12 CollectionStatistics(String 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 toString() { 39 return new StringBuffer () 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 |