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 close() throws RepositoryException
RepositoryException
).close
in interface AutoCloseable
RepositoryException
void begin() throws RepositoryException
RepositoryException
void commit() throws RepositoryException
RepositoryException
void rollback() throws RepositoryException
RepositoryException
void addStatement(Resource subj, IRI pred, Value obj, Resource... contexts) throws RepositoryException
subj
- pred
- obj
- contexts
- RepositoryException
void removeStatement(Resource subj, IRI pred, Value obj, Resource... contexts) throws RepositoryException
subj
- pred
- obj
- contexts
- RepositoryException
void clear(Resource... contexts) throws RepositoryException
RepositoryException
void clearNamespaces() throws RepositoryException
RepositoryException
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.