public interface Sail
Modifier and Type | Method and Description |
---|---|
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
IsolationLevel s 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.
|
default void |
init()
Initializes the Sail.
|
void |
initialize()
Deprecated.
Use {
init() instead. |
boolean |
isWritable()
Checks whether this Sail object is writable, i.e.
|
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.
|
void setDataDir(File dataDir)
initialized
.IllegalStateException
- If this method is called when the Sail has already been initialized.File getDataDir()
setDataDir(File)
@Deprecated void initialize() throws SailException
init()
instead.SailException
- If the Sail could not be initialized.default void init() throws SailException
SailException
- If the Sail could not be initialized.void shutDown() throws SailException
SailException
- If the Sail object encountered an error or unexpected situation internally.boolean isWritable() throws SailException
SailException
SailConnection getConnection() throws SailException
SailException
- If no transaction could be started, for example because the Sail is not writable.IllegalStateException
- If the Sail has not been initialized or has been shut down.ValueFactory getValueFactory()
List<IsolationLevel> getSupportedIsolationLevels()
IsolationLevel
s supported by this SAIL, ordered by increasing complexity.IsolationLevel
.IsolationLevel getDefaultIsolationLevel()
IsolationLevel
level on which transactions in this Sail operate.IsolationLevel
that will be used with SailConnection.begin()
, for SAIL connections
returned by getConnection()
.Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.