public interface WriteStrategy
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 |
close()
Close this write strategy (e.g.
|
void |
commit()
Commit a transaction.
|
void |
initialize()
Initialize the write strategy (e.g.
|
boolean |
isInitialized()
Returns true if this instance is initialized
|
void |
removeStatement(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Remove a statement
|
void |
rollback()
Rollback a transaction.
|
void initialize() throws RepositoryException
RepositoryConnection
.RepositoryException
boolean isInitialized()
void close() throws RepositoryException
RepositoryException
).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
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.