1 package org.hibernate.stat; 3 4 5 13 public interface Statistics { 14 17 public void clear(); 18 19 25 public EntityStatistics getEntityStatistics(String entityName); 26 32 public CollectionStatistics getCollectionStatistics(String role); 33 34 40 public SecondLevelCacheStatistics getSecondLevelCacheStatistics(String regionName); 41 42 48 public QueryStatistics getQueryStatistics(String queryString); 49 50 54 public long getEntityDeleteCount(); 55 56 60 public long getEntityInsertCount(); 61 62 66 public long getEntityLoadCount(); 67 71 public long getEntityFetchCount(); 72 73 77 public long getEntityUpdateCount(); 78 79 83 public long getQueryExecutionCount(); 84 85 88 public long getQueryExecutionMaxTime(); 89 90 93 public long getQueryCacheHitCount(); 94 97 public long getQueryCacheMissCount(); 98 101 public long getQueryCachePutCount(); 102 105 public long getFlushCount(); 106 111 public long getConnectCount(); 112 115 public long getSecondLevelCacheHitCount(); 116 119 public long getSecondLevelCacheMissCount(); 120 123 public long getSecondLevelCachePutCount(); 124 127 public long getSessionCloseCount(); 128 131 public long getSessionOpenCount(); 132 135 public long getCollectionLoadCount(); 136 139 public long getCollectionFetchCount(); 140 143 public long getCollectionUpdateCount(); 144 147 public long getCollectionRemoveCount(); 149 152 public long getCollectionRecreateCount(); 153 156 public long getStartTime(); 157 160 public void logSummary(); 161 164 public boolean isStatisticsEnabled(); 165 168 public void setStatisticsEnabled(boolean b); 169 170 173 public String [] getQueries(); 174 177 public String [] getEntityNames(); 178 181 public String [] getCollectionRoleNames(); 182 185 public String [] getSecondLevelCacheRegionNames(); 186 189 public long getSuccessfulTransactionCount(); 190 193 public long getTransactionCount(); 194 197 public long getPrepareStatementCount(); 198 201 public long getCloseStatementCount(); 202 } | Popular Tags |