Best code examples for Hibernate ORM Statistics class (org.hibernate.stat.Statistics)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM Statistics class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM Statistics examples from Open Source projects
This code example shows how to use the following methods: toString, getStartTime
31:	text = "Statistics " + formatter.format( new Date(stats.getStartTime()) ); 
32:	tooltip = stats.toString(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: clear, getFlushCount, getQueryExecutionCount, getQueryStatistics, getSessionCloseCount
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
This code example shows how to use the following methods: getEntityNames, getEntityStatistics
33:	return stats.getEntityStatistics(stats.getEntityNames()[index]); 
Full Snippet Info
6
CodeRank
See Code Examples for Hibernate ORM Statistics Methods: