|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.sail.helpers.SailWrapper
org.openrdf.sail.helpers.NotifyingSailWrapper
public class NotifyingSailWrapper
An implementation of the StackableSail interface that wraps another Sail object and forwards any relevant calls to the wrapped Sail.
| Constructor Summary | |
|---|---|
NotifyingSailWrapper()
Creates a new SailWrapper. |
|
NotifyingSailWrapper(NotifyingSail baseSail)
Creates a new SailWrapper that wraps the supplied Sail. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.openrdf.sail.helpers.SailWrapper |
|---|
getDataDir, getValueFactory, initialize, isWritable, setDataDir, shutDown, verifyBaseSailSet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openrdf.sail.Sail |
|---|
getDataDir, getValueFactory, initialize, isWritable, setDataDir, shutDown |
| Constructor Detail |
|---|
public NotifyingSailWrapper()
setBaseSail(org.openrdf.sail.Sail).
public NotifyingSailWrapper(NotifyingSail baseSail)
| Method Detail |
|---|
public void setBaseSail(Sail baseSail)
StackableSail
setBaseSail in interface StackableSailsetBaseSail in class SailWrapperpublic NotifyingSail getBaseSail()
StackableSail
getBaseSail in interface StackableSailgetBaseSail in class SailWrapper
public NotifyingSailConnection getConnection()
throws SailException
Sail
getConnection 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)
NotifyingSail
addSailChangedListener in interface NotifyingSailpublic void removeSailChangedListener(SailChangedListener listener)
NotifyingSail
removeSailChangedListener in interface NotifyingSail
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||