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
TransactionSetting s to be used for the next transaction. |
public static final ReadOnlyWriteStrategy INSTANCE
public void begin() throws RepositoryException
WriteStrategy
begin
in interface WriteStrategy
RepositoryException
public void commit() throws RepositoryException
WriteStrategy
commit
in interface WriteStrategy
RepositoryException
public void rollback() throws RepositoryException
WriteStrategy
rollback
in interface WriteStrategy
RepositoryException
public void setTransactionSettings(TransactionSetting... transactionSettings) throws RepositoryException
WriteStrategy
TransactionSetting
s to be used for the next transaction.setTransactionSettings
in interface WriteStrategy
transactionSettings
- one or more TransactionSetting
sRepositoryException
public void addStatement(Resource subj, IRI pred, Value obj, Resource... contexts)
WriteStrategy
addStatement
in interface WriteStrategy
public void removeStatement(Resource subj, IRI pred, Value obj, Resource... contexts) throws RepositoryException
WriteStrategy
removeStatement
in interface WriteStrategy
RepositoryException
public void clear(Resource... contexts) throws RepositoryException
clear
in interface WriteStrategy
RepositoryException
public void close() throws RepositoryException
WriteStrategy
RepositoryException
).close
in interface AutoCloseable
close
in interface WriteStrategy
RepositoryException
public void clearNamespaces() throws RepositoryException
clearNamespaces
in interface WriteStrategy
RepositoryException
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.