Code examples for Statistics

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
31:	text = "Statistics " + formatter.format( new Date(stats.getStartTime()) ); 
32:	tooltip = stats.toString(); 
Full Snippet Info
6
CodeRank
49:	boolean isStats = stats.isStatisticsEnabled(); 
50:	stats.clear(); 
51:	stats.setStatisticsEnabled(true); 
-
53:	assertEquals( 1, stats.getSessionOpenCount() ); 
-
55:	assertEquals( 1, stats.getSessionCloseCount() ); 
-
64:	assertEquals( 1, stats.getFlushCount() ); 
-
72:	assertEquals(1, stats.getQueryExecutionCount() ); 
73:	assertEquals(1, stats.getQueryStatistics(hql).getExecutionCount() ); 
-
75:	stats.setStatisticsEnabled(isStats); 
Full Snippet Info
6
CodeRank
33:	return stats.getEntityStatistics(stats.getEntityNames()[index]); 
Full Snippet Info
6
CodeRank