public class NotifyingSailWrapper extends SailWrapper implements NotifyingSail
| Constructor and Description |
|---|
NotifyingSailWrapper()
Creates a new SailWrapper.
|
NotifyingSailWrapper(NotifyingSail baseSail)
Creates a new SailWrapper that wraps the supplied Sail.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSailChangedListener(SailChangedListener listener)
Adds the specified SailChangedListener to receive events when the data in this Sail object changes.
|
NotifyingSail |
getBaseSail()
Gets the base Sail that this Sail works on top of.
|
NotifyingSailConnection |
getConnection()
Opens a connection on the Sail which can be used to query and update data.
|
void |
removeSailChangedListener(SailChangedListener listener)
Removes the specified SailChangedListener so that it no longer receives events from this Sail object.
|
void |
setBaseSail(Sail baseSail)
Sets the base Sail that this Sail will work on top of.
|
getDataDir, getDefaultIsolationLevel, getSupportedIsolationLevels, getValueFactory, initialize, isWritable, setDataDir, setFederatedServiceResolver, shutDown, verifyBaseSailSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataDir, getDefaultIsolationLevel, getSupportedIsolationLevels, getValueFactory, init, initialize, isWritable, setDataDir, shutDownpublic NotifyingSailWrapper()
setBaseSail(org.eclipse.rdf4j.sail.Sail).public NotifyingSailWrapper(NotifyingSail baseSail)
public void setBaseSail(Sail baseSail)
StackableSailsetBaseSail in interface StackableSailsetBaseSail in class SailWrapperpublic NotifyingSail getBaseSail()
StackableSailgetBaseSail in interface StackableSailgetBaseSail in class SailWrapperpublic NotifyingSailConnection getConnection() throws SailException
SailgetConnection in interface NotifyingSailgetConnection in interface SailgetConnection in class SailWrapperSailException - If no transaction could be started, for example because the Sail is not writable.public void addSailChangedListener(SailChangedListener listener)
NotifyingSailaddSailChangedListener in interface NotifyingSailpublic void removeSailChangedListener(SailChangedListener listener)
NotifyingSailremoveSailChangedListener in interface NotifyingSailCopyright © 2015-2022 Eclipse Foundation. All Rights Reserved.