KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > stat > SessionStatistics


1 //$Id: SessionStatistics.java,v 1.1 2005/05/11 15:26:04 oneovthafew Exp $
2
package org.hibernate.stat;
3
4 import java.util.Set JavaDoc;
5
6 /**
7  * Information about the first-level (session) cache
8  * for a particular session instance
9  * @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      * Get the number of collection instances associated with the session
19      */

20     public int getCollectionCount();
21
22     /**
23      * Get the set of all <tt>EntityKey</tt>s
24      * @see org.hibernate.engine.EntityKey
25      */

26     public Set JavaDoc getEntityKeys();
27     /**
28      * Get the set of all <tt>CollectionKey</tt>s
29      * @see org.hibernate.engine.CollectionKey
30      */

31     public Set JavaDoc getCollectionKeys();
32     
33 }
34
Popular Tags