public class SailWrapper extends Object implements StackableSail, FederatedServiceResolverClient
| 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.
|
IsolationLevel |
getDefaultIsolationLevel()
Retrieves the default
IsolationLevel level on which transactions in this Sail operate. |
List<IsolationLevel> |
getSupportedIsolationLevels()
Retrieve the
IsolationLevels supported by this SAIL, ordered by increasing complexity. |
ValueFactory |
getValueFactory()
Gets a ValueFactory object that can be used to create IRI-, 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 |
setFederatedServiceResolver(FederatedServiceResolver resolver)
Sets the
FederatedServiceResolver to use for this client. |
void |
shutDown()
Shuts down the Sail, giving it the opportunity to synchronize any stale data.
|
protected void |
verifyBaseSailSet() |
public SailWrapper()
setBaseSail(org.eclipse.rdf4j.sail.Sail).public SailWrapper(Sail baseSail)
public void setBaseSail(Sail baseSail)
StackableSailsetBaseSail in interface StackableSailpublic Sail getBaseSail()
StackableSailgetBaseSail in interface StackableSailprotected void verifyBaseSailSet()
public void setFederatedServiceResolver(FederatedServiceResolver resolver)
FederatedServiceResolverClientFederatedServiceResolver to use for this client.setFederatedServiceResolver in interface FederatedServiceResolverClientresolver - The resolver to use.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 Sailpublic List<IsolationLevel> getSupportedIsolationLevels()
SailIsolationLevels supported by this SAIL, ordered by increasing complexity.getSupportedIsolationLevels in interface SailIsolationLevel.public IsolationLevel getDefaultIsolationLevel()
SailIsolationLevel level on which transactions in this Sail operate.getDefaultIsolationLevel in interface SailIsolationLevel that will be used with SailConnection.begin(), for SAIL connections
returned by Sail.getConnection().Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.