Package org.eclipse.rdf4j.sail.helpers
Class NotifyingSailConnectionWrapper
- java.lang.Object
-
- org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
-
- org.eclipse.rdf4j.sail.helpers.NotifyingSailConnectionWrapper
-
- All Implemented Interfaces:
AutoCloseable,FederatedServiceResolverClient,ThreadSafetyAware,NotifyingSailConnection,SailConnection
- Direct Known Subclasses:
InferencerConnectionWrapper,LuceneSailConnection,ShaclSailConnection
public class NotifyingSailConnectionWrapper extends SailConnectionWrapper implements NotifyingSailConnection
An implementation of theNotifyingSailConnectioninterface that wraps anotherNotifyingSailConnectionobject and forwards any method calls to the wrapped transaction.- Author:
- Jeen Broekstra
-
-
Constructor Summary
Constructors Constructor Description NotifyingSailConnectionWrapper(NotifyingSailConnection wrappedCon)Creates a newNotifyingSailConnectionWrapperobject that wraps the supplied connection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConnectionListener(SailConnectionListener listener)Adds the given listener to the wrapped connection.NotifyingSailConnectiongetWrappedConnection()Gets the connection that is wrapped by this object.voidremoveConnectionListener(SailConnectionListener listener)Removes the given listener from the wrapped connection.-
Methods inherited from class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapper
addStatement, addStatement, begin, begin, clear, clearNamespaces, close, commit, endUpdate, evaluate, explain, flush, getContextIDs, getFederatedServiceResolver, getNamespace, getNamespaces, getStatements, hasStatement, isActive, isOpen, prepare, prepareQuery, removeNamespace, removeStatement, removeStatements, rollback, setFederatedServiceResolver, setNamespace, setTransactionSettings, size, size, startUpdate, supportsConcurrentReads
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.sail.SailConnection
addStatement, addStatement, begin, begin, clear, clearNamespaces, close, commit, endUpdate, evaluate, explain, flush, getContextIDs, getNamespace, getNamespaces, getStatements, hasStatement, isActive, isOpen, prepare, prepareQuery, removeNamespace, removeStatement, removeStatements, rollback, setNamespace, setTransactionSettings, size, startUpdate
-
-
-
-
Constructor Detail
-
NotifyingSailConnectionWrapper
public NotifyingSailConnectionWrapper(NotifyingSailConnection wrappedCon)
Creates a newNotifyingSailConnectionWrapperobject that wraps the supplied connection.
-
-
Method Detail
-
getWrappedConnection
public NotifyingSailConnection getWrappedConnection()
Description copied from class:SailConnectionWrapperGets the connection that is wrapped by this object.- Overrides:
getWrappedConnectionin classSailConnectionWrapper- Returns:
- The SailConnection object that was supplied to the constructor of this class.
-
addConnectionListener
public void addConnectionListener(SailConnectionListener listener)
Adds the given listener to the wrapped connection.- Specified by:
addConnectionListenerin interfaceNotifyingSailConnection- Parameters:
listener- A SailConnectionListener.
-
removeConnectionListener
public void removeConnectionListener(SailConnectionListener listener)
Removes the given listener from the wrapped connection.- Specified by:
removeConnectionListenerin interfaceNotifyingSailConnection- Parameters:
listener- A SailConnectionListener.
-
-