Interface SessionStatistics

All Known Implementing Classes:
SessionStatisticsImpl

public interface SessionStatistics
Information about the first-level (session) cache for a particular instance of Session.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The number of collection instances associated with the session.
    Set<?>
    The set of all CollectionKeys currently held within the persistence context.
    int
    The number of entity instances associated with the session.
    Set<?>
    The set of all EntityKeys currently held within the persistence context.
  • Method Details

    • getEntityCount

      int getEntityCount()
      The number of entity instances associated with the session.
    • getCollectionCount

      int getCollectionCount()
      The number of collection instances associated with the session.
    • getEntityKeys

      Set<?> getEntityKeys()
      The set of all EntityKeys currently held within the persistence context.
    • getCollectionKeys

      Set<?> getCollectionKeys()
      The set of all CollectionKeys currently held within the persistence context.