Package org.hibernate.stat.internal
Class SessionStatisticsImpl
- java.lang.Object
-
- org.hibernate.stat.internal.SessionStatisticsImpl
-
- All Implemented Interfaces:
SessionStatistics
public class SessionStatisticsImpl extends Object implements SessionStatistics
-
-
Constructor Summary
Constructors Constructor Description SessionStatisticsImpl(SessionImplementor session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCollectionCount()
The number of collection instances associated with the session.Set<?>
getCollectionKeys()
The set of allCollectionKey
s currently held within the persistence context.int
getEntityCount()
The number of entity instances associated with the session.Set<?>
getEntityKeys()
The set of allEntityKey
s currently held within the persistence context.String
toString()
-
-
-
Constructor Detail
-
SessionStatisticsImpl
public SessionStatisticsImpl(SessionImplementor session)
-
-
Method Detail
-
getEntityCount
public int getEntityCount()
Description copied from interface:SessionStatistics
The number of entity instances associated with the session.- Specified by:
getEntityCount
in interfaceSessionStatistics
-
getCollectionCount
public int getCollectionCount()
Description copied from interface:SessionStatistics
The number of collection instances associated with the session.- Specified by:
getCollectionCount
in interfaceSessionStatistics
-
getEntityKeys
public Set<?> getEntityKeys()
Description copied from interface:SessionStatistics
The set of allEntityKey
s currently held within the persistence context.- Specified by:
getEntityKeys
in interfaceSessionStatistics
-
getCollectionKeys
public Set<?> getCollectionKeys()
Description copied from interface:SessionStatistics
The set of allCollectionKey
s currently held within the persistence context.- Specified by:
getCollectionKeys
in interfaceSessionStatistics
-
-