public class ShaclSailConnection extends NotifyingSailConnectionWrapper
Modifier and Type | Class and Description |
---|---|
class |
ShaclSailConnection.Stats |
Modifier and Type | Field and Description |
---|---|
ShaclSail |
sail |
ShaclSailConnection.Stats |
stats |
Modifier and Type | Method and Description |
---|---|
void |
begin(IsolationLevel level)
Begins a transaction with the specified
IsolationLevel level, requiring SailConnection.commit() or
SailConnection.rollback() to be called to close the transaction. |
void |
close()
Closes the connection.
|
void |
commit()
Commits any updates that have been performed since the last time
SailConnection.commit() or
SailConnection.rollback() was called. |
Repository |
getAddedStatements() |
NotifyingSailConnection |
getPreviousStateConnection() |
Repository |
getRemovedStatements() |
void |
rollback()
Rolls back the transaction, discarding any uncommitted changes that have been made in this
SailConnection.
|
addConnectionListener, getWrappedConnection, removeConnectionListener
addStatement, addStatement, begin, clear, clearNamespaces, endUpdate, evaluate, flush, getContextIDs, getNamespace, getNamespaces, getStatements, isActive, isOpen, pendingRemovals, prepare, removeNamespace, removeStatement, removeStatements, setFederatedServiceResolver, setNamespace, size, size, startUpdate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addStatement, addStatement, addStatement, addStatement, begin, clear, clearNamespaces, endUpdate, evaluate, flush, getContextIDs, getNamespace, getNamespaces, getStatements, getStatements, hasStatement, isActive, isOpen, pendingRemovals, prepare, removeNamespace, removeStatement, removeStatement, removeStatements, removeStatements, setNamespace, size, startUpdate
public final ShaclSail sail
public ShaclSailConnection.Stats stats
public NotifyingSailConnection getPreviousStateConnection()
public Repository getAddedStatements()
public Repository getRemovedStatements()
public void begin(IsolationLevel level) throws SailException
SailConnection
IsolationLevel
level, requiring SailConnection.commit()
or
SailConnection.rollback()
to be called to close the transaction.begin
in interface SailConnection
begin
in class SailConnectionWrapper
level
- the transaction isolation level on which this transaction operates.UnknownSailTransactionStateException
- If the IsolationLevel is not supported by this implementationSailException
- If the connection could not start a transaction, if the supplied transaction isolation level is
not supported, or if a transaction is already active on this connection.public void commit() throws SailException
SailConnection
SailConnection.commit()
or
SailConnection.rollback()
was called.commit
in interface SailConnection
commit
in class SailConnectionWrapper
UnknownSailTransactionStateException
- If the transaction state can not be determined (this can happen for instance when communication
between client and server fails or times-out). It does not indicate a problem with the
integrity of the store.SailException
- If the SailConnection could not be committed.public void rollback() throws SailException
SailConnection
rollback
in interface SailConnection
rollback
in class SailConnectionWrapper
UnknownSailTransactionStateException
- If the transaction state can not be determined (this can happen for instance when communication
between client and server fails or times-out). It does not indicate a problem with the
integrity of the store.SailException
- If the SailConnection could not be rolled back.public void close() throws SailException
SailConnection
close
in interface AutoCloseable
close
in interface SailConnection
close
in class SailConnectionWrapper
SailException
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.