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, verifyBaseSailSet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataDir, getDefaultIsolationLevel, getSupportedIsolationLevels, getValueFactory, init, initialize, isWritable, setDataDir, shutDown
public NotifyingSailWrapper()
setBaseSail(org.eclipse.rdf4j.sail.Sail)
.public NotifyingSailWrapper(NotifyingSail baseSail)
public void setBaseSail(Sail baseSail)
StackableSail
setBaseSail
in interface StackableSail
setBaseSail
in class SailWrapper
public NotifyingSail getBaseSail()
StackableSail
getBaseSail
in interface StackableSail
getBaseSail
in class SailWrapper
public NotifyingSailConnection getConnection() throws SailException
Sail
getConnection
in interface NotifyingSail
getConnection
in interface Sail
getConnection
in class SailWrapper
SailException
- If no transaction could be started, for example because the Sail is not writable.public void addSailChangedListener(SailChangedListener listener)
NotifyingSail
addSailChangedListener
in interface NotifyingSail
public void removeSailChangedListener(SailChangedListener listener)
NotifyingSail
removeSailChangedListener
in interface NotifyingSail
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.