org.openrdf.sail.helpers
Class NotifyingSailConnectionWrapper

java.lang.Object
  extended by org.openrdf.sail.helpers.SailConnectionWrapper
      extended by org.openrdf.sail.helpers.NotifyingSailConnectionWrapper
All Implemented Interfaces:
NotifyingSailConnection, SailConnection
Direct Known Subclasses:
InferencerConnectionWrapper

public class NotifyingSailConnectionWrapper
extends SailConnectionWrapper
implements NotifyingSailConnection

An implementation of the Transaction interface that wraps another Transaction object and forwards any method calls to the wrapped transaction.

Author:
jeen

Constructor Summary
NotifyingSailConnectionWrapper(NotifyingSailConnection wrappedCon)
          Creates a new TransactionWrapper object that wraps the supplied connection.
 
Method Summary
 void addConnectionListener(SailConnectionListener listener)
          Registers a SailConnection listener with this SailConnection.
 NotifyingSailConnection getWrappedConnection()
          Gets the connection that is wrapped by this object.
 void removeConnectionListener(SailConnectionListener listener)
          Deregisters a SailConnection listener with this SailConnection.
 
Methods inherited from class org.openrdf.sail.helpers.SailConnectionWrapper
addStatement, clear, clearNamespaces, close, commit, evaluate, executeUpdate, getContextIDs, getNamespace, getNamespaces, getStatements, isOpen, removeNamespace, removeStatements, rollback, setNamespace, size, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openrdf.sail.SailConnection
addStatement, clear, clearNamespaces, close, commit, evaluate, executeUpdate, getContextIDs, getNamespace, getNamespaces, getStatements, isOpen, removeNamespace, removeStatements, rollback, setNamespace, size
 

Constructor Detail

NotifyingSailConnectionWrapper

public NotifyingSailConnectionWrapper(NotifyingSailConnection wrappedCon)
Creates a new TransactionWrapper object that wraps the supplied connection.

Method Detail

getWrappedConnection

public NotifyingSailConnection getWrappedConnection()
Description copied from class: SailConnectionWrapper
Gets the connection that is wrapped by this object.

Overrides:
getWrappedConnection in class SailConnectionWrapper
Returns:
The SailConnection object that was supplied to the constructor of this class.

addConnectionListener

public void addConnectionListener(SailConnectionListener listener)
Description copied from interface: NotifyingSailConnection
Registers a SailConnection listener with this SailConnection. The listener should be notified of any statements that are added or removed as part of this SailConnection.

Specified by:
addConnectionListener in interface NotifyingSailConnection
Parameters:
listener - A SailConnectionListener.

removeConnectionListener

public void removeConnectionListener(SailConnectionListener listener)
Description copied from interface: NotifyingSailConnection
Deregisters a SailConnection listener with this SailConnection.

Specified by:
removeConnectionListener in interface NotifyingSailConnection
Parameters:
listener - A SailConnectionListener.


Copyright © 2001-2012 Aduna. All Rights Reserved.