01: ///$Id: AutoFlushEvent.java 7785 2005-08-08 23:24:44Z oneovthafew $
02: package org.hibernate.event;
03:
04: import java.util.Set;
05:
06: /** Defines an event class for the auto-flushing of a session.
07: *
08: * @author Steve Ebersole
09: */
10: public class AutoFlushEvent extends FlushEvent {
11:
12: private Set querySpaces;
13: private boolean flushRequired;
14:
15: public AutoFlushEvent(Set querySpaces, EventSource source) {
16: super (source);
17: this .querySpaces = querySpaces;
18: }
19:
20: public Set getQuerySpaces() {
21: return querySpaces;
22: }
23:
24: public void setQuerySpaces(Set querySpaces) {
25: this .querySpaces = querySpaces;
26: }
27:
28: public boolean isFlushRequired() {
29: return flushRequired;
30: }
31:
32: public void setFlushRequired(boolean dirty) {
33: this.flushRequired = dirty;
34: }
35: }
|