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 |
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.
|
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 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 initialize() throws RepositoryException
WriteStrategy
RepositoryConnection
.initialize
in interface WriteStrategy
RepositoryException
public void close() throws RepositoryException
WriteStrategy
RepositoryException
).close
in interface WriteStrategy
RepositoryException
public boolean isInitialized()
WriteStrategy
isInitialized
in interface WriteStrategy
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.