No, but you can obtain overall number of all queries using getQueriesCount() method of the EntityStatistics class
Yes, enable statistics using setEnabled() method of the EntityStatistics class and use getInsertCount(), getUpdateCount() and getDeleteCount() methods of the EntityStatistics class
Yes, you should create an instance of EntityStatistics class, bind this instance to all instances of the given entity and use getInsertCount(), getUpdateCount() and getDeleteCount() methods of the EntityStatistics object
Its impossible at Hibernate level, use JDBC to obtain such information
In genereal, no, but you can count statements manually.
Yes, use getInsertCount(), getUpdateCount() and getDeleteCount() methods of the EntityStatistics class
|