Class ReadOnlyWriteStrategy
java.lang.Object
org.eclipse.rdf4j.federated.write.ReadOnlyWriteStrategy
- All Implemented Interfaces:
AutoCloseable
,WriteStrategy
Default
WriteStrategy
implementation for read only federations. In case a user attempts to perform a write
operation a UnsupportedOperationException
is thrown.- Author:
- Andreas Schwarte
-
Field Summary
-
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.
-
Field Details
-
INSTANCE
-
-
Method Details
-
begin
Description copied from interface:WriteStrategy
Begin a transaction.- Specified by:
begin
in interfaceWriteStrategy
- Throws:
RepositoryException
-
commit
Description copied from interface:WriteStrategy
Commit a transaction.- Specified by:
commit
in interfaceWriteStrategy
- Throws:
RepositoryException
-
rollback
Description copied from interface:WriteStrategy
Rollback a transaction.- Specified by:
rollback
in interfaceWriteStrategy
- Throws:
RepositoryException
-
setTransactionSettings
public void setTransactionSettings(TransactionSetting... transactionSettings) throws RepositoryExceptionDescription copied from interface:WriteStrategy
AssignTransactionSetting
s to be used for the next transaction.- Specified by:
setTransactionSettings
in interfaceWriteStrategy
- Parameters:
transactionSettings
- one or moreTransactionSetting
s- Throws:
RepositoryException
-
addStatement
Description copied from interface:WriteStrategy
Add a statement- Specified by:
addStatement
in interfaceWriteStrategy
-
removeStatement
public void removeStatement(Resource subj, IRI pred, Value obj, Resource... contexts) throws RepositoryExceptionDescription copied from interface:WriteStrategy
Remove a statement- Specified by:
removeStatement
in interfaceWriteStrategy
- Throws:
RepositoryException
-
clear
- Specified by:
clear
in interfaceWriteStrategy
- Throws:
RepositoryException
-
close
Description copied from interface:WriteStrategy
Close this write strategy (e.g. close a sharedRepositoryException
).- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceWriteStrategy
- Throws:
RepositoryException
-
clearNamespaces
- Specified by:
clearNamespaces
in interfaceWriteStrategy
- Throws:
RepositoryException
-