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

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

There is a newer version: 4.2.4
Show newest version
//$Id: CollectionStatistics.java 7093 2005-06-09 06:33:06Z oneovthafew $
package org.hibernate.stat;


/**
 * Collection related statistics
 * 
 * @author Gavin King
 */
public class CollectionStatistics extends CategorizedStatistics {
	
	CollectionStatistics(String role) {
		super(role);
	}
	
	long loadCount;
	long fetchCount;
	long updateCount;
	long removeCount;
	long recreateCount;
	
	public long getLoadCount() {
		return loadCount;
	}
	public long getFetchCount() {
		return fetchCount;
	}
	public long getRecreateCount() {
		return recreateCount;
	}
	public long getRemoveCount() {
		return removeCount;
	}
	public long getUpdateCount() {
		return updateCount;
	}

	public String toString() {
		return new StringBuffer()
		    .append("CollectionStatistics")
			.append("[loadCount=").append(this.loadCount)
			.append(",fetchCount=").append(this.fetchCount)
			.append(",recreateCount=").append(this.recreateCount)
			.append(",removeCount=").append(this.removeCount)
			.append(",updateCount=").append(this.updateCount)
			.append(']')
			.toString();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy