public class ReadOnlyWriteStrategy extends Object implements WriteStrategy
WriteStrategy implementation for read only federations. In case a user attempts to perform a write
operation a UnsupportedOperationException is thrown.| Modifier and Type | Field and Description |
|---|---|
static ReadOnlyWriteStrategy |
INSTANCE |
| 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. |
public static final ReadOnlyWriteStrategy INSTANCE
public void begin()
throws RepositoryException
WriteStrategybegin in interface WriteStrategyRepositoryExceptionpublic void commit()
throws RepositoryException
WriteStrategycommit in interface WriteStrategyRepositoryExceptionpublic void rollback()
throws RepositoryException
WriteStrategyrollback in interface WriteStrategyRepositoryExceptionpublic void setTransactionSettings(TransactionSetting... transactionSettings) throws RepositoryException
WriteStrategyTransactionSettings to be used for the next transaction.setTransactionSettings in interface WriteStrategytransactionSettings - one or more TransactionSettingsRepositoryExceptionpublic void addStatement(Resource subj, IRI pred, Value obj, Resource... contexts)
WriteStrategyaddStatement in interface WriteStrategypublic void removeStatement(Resource subj, IRI pred, Value obj, Resource... contexts) throws RepositoryException
WriteStrategyremoveStatement in interface WriteStrategyRepositoryExceptionpublic void clear(Resource... contexts) throws RepositoryException
clear in interface WriteStrategyRepositoryExceptionpublic void close()
throws RepositoryException
WriteStrategyRepositoryException).close in interface AutoCloseableclose in interface WriteStrategyRepositoryExceptionpublic void clearNamespaces()
throws RepositoryException
clearNamespaces in interface WriteStrategyRepositoryExceptionCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.