org.hibernate.event.spi.FlushEvent Maven / Gradle / Ivy
/*
* 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.event.spi;
/**
* Defines an event class for the flushing of a session.
*
* @author Steve Ebersole
*/
public class FlushEvent extends AbstractEvent {
private int numberOfEntitiesProcessed;
private int numberOfCollectionsProcessed;
public FlushEvent(EventSource source) {
super( source );
}
public int getNumberOfEntitiesProcessed() {
return numberOfEntitiesProcessed;
}
public void setNumberOfEntitiesProcessed(int numberOfEntitiesProcessed) {
this.numberOfEntitiesProcessed = numberOfEntitiesProcessed;
}
public int getNumberOfCollectionsProcessed() {
return numberOfCollectionsProcessed;
}
public void setNumberOfCollectionsProcessed(int numberOfCollectionsProcessed) {
this.numberOfCollectionsProcessed = numberOfCollectionsProcessed;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy