org.openrdf.sail.helpers
Class NotifyingSailConnectionBase

java.lang.Object
  extended by org.openrdf.sail.helpers.SailConnectionBase
      extended by org.openrdf.sail.helpers.NotifyingSailConnectionBase
All Implemented Interfaces:
NotifyingSailConnection, SailConnection
Direct Known Subclasses:
MemoryStoreConnection, NativeStoreConnection

public abstract class NotifyingSailConnectionBase
extends SailConnectionBase
implements NotifyingSailConnection

Abstract Class offering base functionality for SailConnection implementations.

Author:
Arjohn Kampman, jeen

Field Summary
 
Fields inherited from class org.openrdf.sail.helpers.SailConnectionBase
connectionLock, logger, updateLock
 
Constructor Summary
NotifyingSailConnectionBase(SailBase sailBase)
           
 
Method Summary
 void addConnectionListener(SailConnectionListener listener)
          Registers a SailConnection listener with this SailConnection.
protected  boolean hasConnectionListeners()
           
protected  void notifyStatementAdded(Statement st)
           
protected  void notifyStatementRemoved(Statement st)
           
 void removeConnectionListener(SailConnectionListener listener)
          Deregisters a SailConnection listener with this SailConnection.
 
Methods inherited from class org.openrdf.sail.helpers.SailConnectionBase
addStatement, addStatementInternal, autoStartTransaction, clear, clearInternal, clearNamespaces, clearNamespacesInternal, close, closeInternal, commit, commitInternal, evaluate, evaluateInternal, finalize, getContextIDs, getContextIDsInternal, getExclusiveConnectionLock, getNamespace, getNamespaceInternal, getNamespaces, getNamespacesInternal, getSharedConnectionLock, getStatements, getStatementsInternal, getTransactionLock, isOpen, iterationClosed, registerIteration, removeNamespace, removeNamespaceInternal, removeStatements, removeStatementsInternal, rollback, rollbackInternal, setNamespace, setNamespaceInternal, size, sizeInternal, startTransactionInternal, transactionActive, verifyIsOpen
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openrdf.sail.SailConnection
addStatement, clear, clearNamespaces, close, commit, evaluate, getContextIDs, getNamespace, getNamespaces, getStatements, isOpen, removeNamespace, removeStatements, rollback, setNamespace, size
 

Constructor Detail

NotifyingSailConnectionBase

public NotifyingSailConnectionBase(SailBase sailBase)
Method Detail

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.

hasConnectionListeners

protected boolean hasConnectionListeners()

notifyStatementAdded

protected void notifyStatementAdded(Statement st)

notifyStatementRemoved

protected void notifyStatementRemoved(Statement st)


Copyright © 2001-2010 Aduna. All Rights Reserved.