Package org.eclipse.rdf4j.sail.helpers
Class DefaultSailChangedEvent
java.lang.Object
org.eclipse.rdf4j.sail.helpers.DefaultSailChangedEvent
- All Implemented Interfaces:
SailChangedEvent
Default implementation of the SailChangedEvent interface.
-
Constructor Summary
ConstructorDescriptionDefaultSailChangedEvent
(Sail sail) Creates a new DefaultSailChangedEvent in which all possible changes are set to false. -
Method Summary
Modifier and TypeMethodDescriptiongetSail()
The Sail object that sent this event.void
setStatementsAdded
(boolean statementsAdded) void
setStatementsRemoved
(boolean statementsRemoved) boolean
Indicates if statements were added to the Sail.boolean
Indicates if statements were removed from the Sail.
-
Constructor Details
-
DefaultSailChangedEvent
Creates a new DefaultSailChangedEvent in which all possible changes are set to false.
-
-
Method Details
-
getSail
Description copied from interface:SailChangedEvent
The Sail object that sent this event.- Specified by:
getSail
in interfaceSailChangedEvent
-
statementsAdded
public boolean statementsAdded()Description copied from interface:SailChangedEvent
Indicates if statements were added to the Sail.- Specified by:
statementsAdded
in interfaceSailChangedEvent
- Returns:
- true if statements were added during a transaction, false otherwise.
-
setStatementsAdded
public void setStatementsAdded(boolean statementsAdded) -
statementsRemoved
public boolean statementsRemoved()Description copied from interface:SailChangedEvent
Indicates if statements were removed from the Sail.- Specified by:
statementsRemoved
in interfaceSailChangedEvent
- Returns:
- true if statements were removed during a transaction, false otherwise.
-
setStatementsRemoved
public void setStatementsRemoved(boolean statementsRemoved)
-