public class SailWrapper extends Object implements StackableSail
| Constructor and Description |
|---|
SailWrapper()
Creates a new SailWrapper.
|
SailWrapper(Sail baseSail)
Creates a new SailWrapper that wraps the supplied Sail.
|
| Modifier and Type | Method and Description |
|---|---|
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()
Gets the Sail's data directory.
|
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 |
setBaseSail(Sail baseSail)
Sets the base Sail that this Sail will work on top of.
|
void |
setDataDir(File dataDir)
Sets the data directory for the Sail.
|
void |
shutDown()
Shuts down the Sail, giving it the opportunity to synchronize any stale
data.
|
protected void |
verifyBaseSailSet() |
public SailWrapper()
setBaseSail(org.openrdf.sail.Sail).public SailWrapper(Sail baseSail)
public void setBaseSail(Sail baseSail)
StackableSailsetBaseSail in interface StackableSailpublic Sail getBaseSail()
StackableSailgetBaseSail in interface StackableSailprotected void verifyBaseSailSet()
public File getDataDir()
SailgetDataDir in interface SailSail.setDataDir(File)public void setDataDir(File dataDir)
Sailinitialized.setDataDir in interface Sailpublic void initialize()
throws SailException
Sailinitialize in interface SailSailException - If the Sail could not be initialized.public void shutDown()
throws SailException
SailshutDown in interface SailSailException - If the Sail object encountered an error or unexpected situation
internally.public boolean isWritable()
throws SailException
SailisWritable in interface SailSailExceptionpublic SailConnection getConnection() throws SailException
SailgetConnection in interface SailSailException - If no transaction could be started, for example because the Sail
is not writable.public ValueFactory getValueFactory()
SailgetValueFactory in interface SailCopyright © 2001-2014 Aduna. All Rights Reserved.