1 package org.hibernate.stat; 3 4 5 10 public class EntityStatistics extends CategorizedStatistics { 11 12 EntityStatistics(String name) { 13 super(name); 14 } 15 16 long loadCount; 17 long updateCount; 18 long insertCount; 19 long deleteCount; 20 long fetchCount; 21 22 public long getDeleteCount() { 23 return deleteCount; 24 } 25 public long getInsertCount() { 26 return insertCount; 27 } 28 public long getLoadCount() { 29 return loadCount; 30 } 31 public long getUpdateCount() { 32 return updateCount; 33 } 34 public long getFetchCount() { 35 return fetchCount; 36 } 37 38 public String toString() { 39 return new StringBuffer () 40 .append("EntityStatistics") 41 .append("[loadCount=").append(this.loadCount) 42 .append(",updateCount=").append(this.updateCount) 43 .append(",insertCount=").append(this.insertCount) 44 .append(",deleteCount=").append(this.deleteCount) 45 .append(",fetchCount=").append(this.fetchCount) 46 .append(']') 47 .toString(); 48 } 49 } 50 | Popular Tags |