org.openrdf.sail
Interface NotifyingSailConnection

All Superinterfaces:
SailConnection
All Known Subinterfaces:
InferencerConnection
All Known Implementing Classes:
AutoCommitInferencerConnection, AutoCommitNotifyingConnection, InferencerConnectionWrapper, MemoryStoreConnection, NativeStoreConnection, NotifyingSailConnectionBase, NotifyingSailConnectionWrapper, PreconditionInferencerConnection, SynchronizedInferencerConnection, TrackingInferencerConnection

public interface NotifyingSailConnection
extends SailConnection

A connection to an RDF Sail object. A SailConnection is active from the moment it is created until it is closed. Care should be taken to properly close SailConnections as they might block concurrent queries and/or updates on the Sail while active, depending on the Sail-implementation that is being used.

Author:
James Leigh

Method Summary
 void addConnectionListener(SailConnectionListener listener)
          Registers a SailConnection listener with this SailConnection.
 void removeConnectionListener(SailConnectionListener listener)
          Deregisters a SailConnection listener with this SailConnection.
 
Methods inherited from interface org.openrdf.sail.SailConnection
addStatement, begin, clearNamespaces, close, commit, evaluate, getContextIDs, getNamespace, getNamespaces, getStatements, getTransactionIsolation, getValueFactory, isAutoCommit, isOpen, isReadOnly, removeNamespace, removeStatements, rollback, setNamespace, setReadOnly, setTransactionIsolation, size
 

Method Detail

addConnectionListener

void addConnectionListener(SailConnectionListener listener)
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.

Parameters:
listener - A SailConnectionListener.

removeConnectionListener

void removeConnectionListener(SailConnectionListener listener)
Deregisters a SailConnection listener with this SailConnection.

Parameters:
listener - A SailConnectionListener.


Copyright © 2001-2009 Aduna. All Rights Reserved.