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, removeConnectionListeneraddStatement, addStatement, clear, clearNamespaces, close, endUpdate, evaluate, getContextIDs, getNamespace, getNamespaces, getStatements, isActive, isOpen, prepare, removeNamespace, removeStatement, removeStatements, setNamespace, size, size, startUpdateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddConnectionListener, removeConnectionListeneraddStatement, addStatement, clear, clearNamespaces, close, endUpdate, evaluate, getContextIDs, getNamespace, getNamespaces, getStatements, isActive, isOpen, prepare, removeNamespace, removeStatement, removeStatements, setNamespace, size, startUpdatepublic KiWiTransactionalConnection(org.openrdf.sail.NotifyingSailConnection wrapped,
Collection<TransactionListener> listeners)
throws org.openrdf.sail.SailException
org.openrdf.sail.SailExceptionpublic void addTransactionListener(TransactionListener listener)
addTransactionListener in interface TransactionalSailConnectionlistener - public void removeTransactionListener(TransactionListener listener)
removeTransactionListener in interface TransactionalSailConnectionlistener - public void statementAdded(org.openrdf.model.Statement triple)
statementAdded in interface org.openrdf.sail.SailConnectionListenertriple - public void statementRemoved(org.openrdf.model.Statement triple)
statementRemoved in interface org.openrdf.sail.SailConnectionListenertriple - public void begin()
throws org.openrdf.sail.SailException
begin in interface org.openrdf.sail.SailConnectionbegin in class org.openrdf.sail.helpers.SailConnectionWrapperorg.openrdf.sail.SailExceptionpublic void commit()
throws org.openrdf.sail.SailException
commit in interface org.openrdf.sail.SailConnectioncommit in class org.openrdf.sail.helpers.SailConnectionWrapperorg.openrdf.sail.SailExceptionpublic void rollback()
throws org.openrdf.sail.SailException
rollback in interface org.openrdf.sail.SailConnectionrollback in class org.openrdf.sail.helpers.SailConnectionWrapperorg.openrdf.sail.SailExceptionCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.