Interface WriteStrategy
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
ReadOnlyWriteStrategy
,RepositoryWriteStrategy
Interface for the
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.
- Author:
- Andreas Schwarte
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addStatement
(Resource subj, IRI pred, Value obj, Resource... contexts) Add a statementvoid
begin()
Begin a transaction.void
void
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 statementvoid
rollback()
Rollback a transaction.void
setTransactionSettings
(TransactionSetting... transactionSettings) AssignTransactionSetting
s to be used for the next transaction.
-
Method Details
-
close
Close this write strategy (e.g. close a sharedRepositoryException
).- Specified by:
close
in interfaceAutoCloseable
- Throws:
RepositoryException
-
setTransactionSettings
AssignTransactionSetting
s to be used for the next transaction.- Parameters:
transactionSettings
- one or moreTransactionSetting
s- Throws:
RepositoryException
-
begin
Begin a transaction.- Throws:
RepositoryException
-
commit
Commit a transaction.- Throws:
RepositoryException
-
rollback
Rollback a transaction.- Throws:
RepositoryException
-
addStatement
void addStatement(Resource subj, IRI pred, Value obj, Resource... contexts) throws RepositoryException Add a statement- Parameters:
subj
-pred
-obj
-contexts
-- Throws:
RepositoryException
-
removeStatement
void removeStatement(Resource subj, IRI pred, Value obj, Resource... contexts) throws RepositoryException Remove a statement- Parameters:
subj
-pred
-obj
-contexts
-- Throws:
RepositoryException
-
clear
- Throws:
RepositoryException
-
clearNamespaces
- Throws:
RepositoryException
-