01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2006.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.sail;
07:
08: /**
09: * Event object that is send to {@link SailChangedListener}s to indicate that
10: * the contents of the Sail that sent the event have changed.
11: */
12: public interface SailChangedEvent {
13:
14: /**
15: * The Sail object that sent this event.
16: */
17: public Sail getSail();
18:
19: /**
20: * Indicates if statements were added to the Sail.
21: *
22: * @return <tt>true</tt> if statements were added during a transaction,
23: * <tt>false</tt> otherwise.
24: */
25: public boolean statementsAdded();
26:
27: /**
28: * Indicates if statements were removed from the Sail.
29: *
30: * @return <tt>true</tt> if statements were removed during a transaction,
31: * <tt>false</tt> otherwise.
32: */
33: public boolean statementsRemoved();
34:
35: }
|