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 the
NotifyingSailConnection
interface that wraps another
NotifyingSailConnection
object and forwards any method calls to the wrapped
transaction.- Author:
- Jeen Broekstra
-
Constructor Summary
ConstructorDescriptionCreates a newNotifyingSailConnectionWrapper
object that wraps the supplied connection. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConnectionListener
(SailConnectionListener listener) Adds the given listener to the wrapped connection.Gets the connection that is wrapped by this object.void
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, getComparator, getContextIDs, getFederatedServiceResolver, getNamespace, getNamespaces, getStatements, getStatements, getSupportedOrders, 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, getComparator, getContextIDs, getNamespace, getNamespaces, getStatements, getStatements, getSupportedOrders, hasStatement, isActive, isOpen, prepare, prepareQuery, removeNamespace, removeStatement, removeStatements, rollback, setNamespace, setTransactionSettings, size, startUpdate
-
Constructor Details
-
NotifyingSailConnectionWrapper
Creates a newNotifyingSailConnectionWrapper
object that wraps the supplied connection.
-
-
Method Details
-
getWrappedConnection
Description copied from class:SailConnectionWrapper
Gets the connection that is wrapped by this object.- Overrides:
getWrappedConnection
in classSailConnectionWrapper
- Returns:
- The SailConnection object that was supplied to the constructor of this class.
-
addConnectionListener
Adds the given listener to the wrapped connection.- Specified by:
addConnectionListener
in interfaceNotifyingSailConnection
- Parameters:
listener
- A SailConnectionListener.
-
removeConnectionListener
Removes the given listener from the wrapped connection.- Specified by:
removeConnectionListener
in interfaceNotifyingSailConnection
- Parameters:
listener
- A SailConnectionListener.
-