public class KiWiTransactionalConnection extends org.openrdf.sail.helpers.NotifyingSailConnectionWrapper implements org.openrdf.sail.SailConnectionListener, TransactionalSailConnection
Constructor and Description |
---|
KiWiTransactionalConnection(org.openrdf.sail.NotifyingSailConnection wrapped,
Collection<TransactionListener> listeners) |
Modifier and Type | Method and Description |
---|---|
void |
addTransactionListener(TransactionListener listener)
Add a transaction listener to the transactional connection.
|
void |
begin() |
void |
commit()
Notify the listeners of a commit before and after calling the super method
|
void |
removeTransactionListener(TransactionListener listener)
Remove a transaction listener from the transactional connection
|
void |
rollback()
Notify the listeners after rolling back.
|
void |
statementAdded(org.openrdf.model.Statement triple)
This method is called when a triple has been added to the repository.
|
void |
statementRemoved(org.openrdf.model.Statement triple)
This method is called when a triple has been removed from the repository.
|
addConnectionListener, getWrappedConnection, removeConnectionListener
addStatement, addStatement, clear, clearNamespaces, close, endUpdate, evaluate, getContextIDs, getNamespace, getNamespaces, getStatements, isActive, isOpen, prepare, removeNamespace, removeStatement, removeStatements, setNamespace, size, size, startUpdate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addConnectionListener, removeConnectionListener
addStatement, addStatement, clear, clearNamespaces, close, endUpdate, evaluate, getContextIDs, getNamespace, getNamespaces, getStatements, isActive, isOpen, prepare, removeNamespace, removeStatement, removeStatements, setNamespace, size, startUpdate
public KiWiTransactionalConnection(org.openrdf.sail.NotifyingSailConnection wrapped, Collection<TransactionListener> listeners) throws org.openrdf.sail.SailException
org.openrdf.sail.SailException
public void addTransactionListener(TransactionListener listener)
addTransactionListener
in interface TransactionalSailConnection
listener
- public void removeTransactionListener(TransactionListener listener)
removeTransactionListener
in interface TransactionalSailConnection
listener
- public void statementAdded(org.openrdf.model.Statement triple)
statementAdded
in interface org.openrdf.sail.SailConnectionListener
triple
- public void statementRemoved(org.openrdf.model.Statement triple)
statementRemoved
in interface org.openrdf.sail.SailConnectionListener
triple
- public void begin() throws org.openrdf.sail.SailException
begin
in interface org.openrdf.sail.SailConnection
begin
in class org.openrdf.sail.helpers.SailConnectionWrapper
org.openrdf.sail.SailException
public void commit() throws org.openrdf.sail.SailException
commit
in interface org.openrdf.sail.SailConnection
commit
in class org.openrdf.sail.helpers.SailConnectionWrapper
org.openrdf.sail.SailException
public void rollback() throws org.openrdf.sail.SailException
rollback
in interface org.openrdf.sail.SailConnection
rollback
in class org.openrdf.sail.helpers.SailConnectionWrapper
org.openrdf.sail.SailException
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.