FileDocCategorySizeDatePackage
SessionStatisticsImpl.javaAPI DocHibernate 3.2.51175Fri Jul 29 16:43:18 BST 2005org.hibernate.stat

SessionStatisticsImpl

public class SessionStatisticsImpl extends Object implements SessionStatistics
author
Gavin King

Fields Summary
private final org.hibernate.engine.SessionImplementor
session
Constructors Summary
public SessionStatisticsImpl(org.hibernate.engine.SessionImplementor session)

		this.session = session;
	
Methods Summary
public intgetCollectionCount()

		return session.getPersistenceContext().getCollectionEntries().size();
	
public java.util.SetgetCollectionKeys()

		return Collections.unmodifiableSet( session.getPersistenceContext().getCollectionsByKey().keySet() );
	
public intgetEntityCount()

		return session.getPersistenceContext().getEntityEntries().size();
	
public java.util.SetgetEntityKeys()

		return Collections.unmodifiableSet( session.getPersistenceContext().getEntitiesByKey().keySet() );
	
public java.lang.StringtoString()

		return new StringBuffer()
			.append("SessionStatistics[")
			.append("entity count=").append( getEntityCount() )
			.append("collection count=").append( getCollectionCount() )
			.append(']")
			.toString();