|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.sail.helpers.SailWrapper
public class SailWrapper
An implementation of the StackableSail interface that wraps another Sail object and forwards any relevant calls to the wrapped Sail.
| Constructor Summary | |
|---|---|
SailWrapper()
Creates a new SailWrapper. |
|
SailWrapper(Sail 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. |
Sail |
getBaseSail()
Gets the base Sail that this Sail works on top of. |
SailConnection |
getConnection()
Opens a connection on the Sail which can be used to query and update data. |
File |
getDataDir()
|
ValueFactory |
getValueFactory()
Gets a ValueFactory object that can be used to create URI-, blank node-, literal- and statement objects. |
void |
initialize()
Initializes the Sail. |
boolean |
isWritable()
Checks whether this Sail object is writable, i.e. |
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. |
void |
setDataDir(File dataDir)
|
void |
shutDown()
Shuts down the Sail, giving it the opportunity to synchronize any stale data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SailWrapper()
setBaseSail(org.openrdf.sail.Sail).
public SailWrapper(Sail baseSail)
| Method Detail |
|---|
public void setBaseSail(Sail baseSail)
StackableSail
setBaseSail in interface StackableSailpublic Sail getBaseSail()
StackableSail
getBaseSail in interface StackableSailpublic File getDataDir()
getDataDir in interface Sailpublic void setDataDir(File dataDir)
setDataDir in interface Sail
public void initialize()
throws SailException
Sail#setParameter.
initialize in interface SailSailException - If the Sail could not be initialized.
public void shutDown()
throws SailException
Sail
shutDown in interface SailSailException - If the Sail object encountered an error or unexpected situation
internally.
public boolean isWritable()
throws SailException
Sail
isWritable in interface SailSailException
public SailConnection getConnection()
throws SailException
Sail
getConnection in interface SailSailException - If no transaction could be started, for example because the Sail
is not writable.public ValueFactory getValueFactory()
Sail
getValueFactory in interface Sailpublic void addSailChangedListener(SailChangedListener listener)
Sail
addSailChangedListener in interface Sailpublic void removeSailChangedListener(SailChangedListener listener)
Sail
removeSailChangedListener in interface Sail
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||