@Experimental public interface WriteStrategy extends AutoCloseable
WriteStrategy that is used for writing data to the federation. The implementation can
decided upon how is data written to the underlying federation members (e.g. to a designated federation member)
Note: this is an experimental feature which is subject to change in a future version.
RepositoryWriteStrategy,
ReadOnlyWriteStrategy| Modifier and Type | Method and Description |
|---|---|
void |
addStatement(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Add a statement
|
void |
begin()
Begin a transaction.
|
void |
clear(Resource... contexts) |
void |
clearNamespaces() |
void |
close()
Close this write strategy (e.g.
|
void |
commit()
Commit a transaction.
|
void |
removeStatement(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Remove a statement
|
void |
rollback()
Rollback a transaction.
|
void |
setTransactionSettings(TransactionSetting... transactionSettings)
Assign
TransactionSettings to be used for the next transaction. |
void close()
throws RepositoryException
RepositoryException).close in interface AutoCloseableRepositoryExceptionvoid setTransactionSettings(TransactionSetting... transactionSettings) throws RepositoryException
TransactionSettings to be used for the next transaction.transactionSettings - one or more TransactionSettingsRepositoryExceptionvoid begin()
throws RepositoryException
RepositoryExceptionvoid commit()
throws RepositoryException
RepositoryExceptionvoid rollback()
throws RepositoryException
RepositoryExceptionvoid addStatement(Resource subj, IRI pred, Value obj, Resource... contexts) throws RepositoryException
subj - pred - obj - contexts - RepositoryExceptionvoid removeStatement(Resource subj, IRI pred, Value obj, Resource... contexts) throws RepositoryException
subj - pred - obj - contexts - RepositoryExceptionvoid clear(Resource... contexts) throws RepositoryException
RepositoryExceptionvoid clearNamespaces()
throws RepositoryException
RepositoryExceptionCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.