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
ConstructorsConstructorDescriptionCreates a newNotifyingSailConnectionWrapperobject that wraps the supplied connection. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConnectionListener(SailConnectionListener listener) Adds the given listener to the wrapped connection.Gets the connection that is wrapped by this object.voidRemoves 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, supportsConcurrentReadsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 newNotifyingSailConnectionWrapperobject that wraps the supplied connection.
-
-
Method Details
-
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
Adds the given listener to the wrapped connection.- Specified by:
addConnectionListenerin interfaceNotifyingSailConnection- Parameters:
listener- A SailConnectionListener.
-
removeConnectionListener
Removes the given listener from the wrapped connection.- Specified by:
removeConnectionListenerin interfaceNotifyingSailConnection- Parameters:
listener- A SailConnectionListener.
-