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.helpers;
07:
08: import org.openrdf.sail.Sail;
09: import org.openrdf.sail.SailChangedEvent;
10:
11: /**
12: * Default implementation of the SailChangedEvent interface.
13: */
14: public class DefaultSailChangedEvent implements SailChangedEvent {
15:
16: /*-----------*
17: * Constants *
18: *-----------*/
19:
20: private final Sail sail;
21:
22: /*-----------*
23: * Variables *
24: *-----------*/
25:
26: private boolean statementsAdded;
27:
28: private boolean statementsRemoved;
29:
30: /*--------------*
31: * Constructors *
32: *--------------*/
33:
34: /**
35: * Creates a new DefaultSailChangedEvent in which all possible changes are
36: * set to false.
37: */
38: public DefaultSailChangedEvent(Sail sail) {
39: this .sail = sail;
40: }
41:
42: /*---------*
43: * Methods *
44: *---------*/
45:
46: public Sail getSail() {
47: return sail;
48: }
49:
50: public boolean statementsAdded() {
51: return statementsAdded;
52: }
53:
54: public void setStatementsAdded(boolean statementsAdded) {
55: this .statementsAdded = statementsAdded;
56: }
57:
58: public boolean statementsRemoved() {
59: return statementsRemoved;
60: }
61:
62: public void setStatementsRemoved(boolean statementsRemoved) {
63: this.statementsRemoved = statementsRemoved;
64: }
65: }
|