01: //$Id: SessionStatistics.java 6750 2005-05-11 15:26:04Z oneovthafew $
02: package org.hibernate.stat;
03:
04: import java.util.Set;
05:
06: /**
07: * Information about the first-level (session) cache
08: * for a particular session instance
09: * @author Gavin King
10: */
11: public interface SessionStatistics {
12:
13: /**
14: * Get the number of entity instances associated with the session
15: */
16: public int getEntityCount();
17:
18: /**
19: * Get the number of collection instances associated with the session
20: */
21: public int getCollectionCount();
22:
23: /**
24: * Get the set of all <tt>EntityKey</tt>s
25: * @see org.hibernate.engine.EntityKey
26: */
27: public Set getEntityKeys();
28:
29: /**
30: * Get the set of all <tt>CollectionKey</tt>s
31: * @see org.hibernate.engine.CollectionKey
32: */
33: public Set getCollectionKeys();
34:
35: }
|