Code example for SessionImplementor

Methods: getPersistenceContext

0
	public SessionStatisticsImpl(SessionImplementor session) {
		this.session = session;
	} 
 
	public int getEntityCount() { 
		return session.getPersistenceContext().getEntityEntries().size();
	} 
	 
	public int getCollectionCount() { 
		return session.getPersistenceContext().getCollectionEntries().size();
	} 
	 
	public Set getEntityKeys() {
		return Collections.unmodifiableSet( session.getPersistenceContext().getEntitiesByKey().keySet() );
	} 
	 
	public Set getCollectionKeys() {
		return Collections.unmodifiableSet( session.getPersistenceContext().getCollectionsByKey().keySet() );
	} 
	 
Stop searching for code, let great code find you!  Add Codota to your java IDE