All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.stat.SessionStatistics Maven / Gradle / Ivy

There is a newer version: 6.6.2.Final
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.stat;

import java.util.Set;

/**
 * Information about the first-level (session) cache for a particular
 * instance of {@link org.hibernate.Session}.
 *
 * @author Gavin King
 */
public interface SessionStatistics {
	/**
	 * The number of entity instances associated with the session.
	 */
	int getEntityCount();
	/**
	 * The number of collection instances associated with the session.
	 */
	int getCollectionCount();

	/**
	 * The set of all {@link org.hibernate.engine.spi.EntityKey}s
	 * currently held within the persistence context.
	 */
	Set getEntityKeys();
	/**
	 * The set of all {@link org.hibernate.engine.spi.CollectionKey}s
	 * currently held within the persistence context.
	 */
	Set getCollectionKeys();
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy