public abstract class NotifyingSailBase extends SailBase implements NotifyingSail
connectionTimeOut, DEFAULT_CONNECTION_TIMEOUT, initializationLock, logger
Constructor and Description |
---|
NotifyingSailBase() |
Modifier and Type | Method and Description |
---|---|
void |
addSailChangedListener(SailChangedListener listener)
Adds the specified SailChangedListener to receive events when the data in
this Sail object changes.
|
NotifyingSailConnection |
getConnection()
Opens a connection on the Sail which can be used to query and update data.
|
protected abstract NotifyingSailConnection |
getConnectionInternal()
Returns a store-specific SailConnection object.
|
void |
notifySailChanged(SailChangedEvent event)
Notifies all registered SailChangedListener's of changes to the contents
of this Sail.
|
void |
removeSailChangedListener(SailChangedListener listener)
Removes the specified SailChangedListener so that it no longer receives
events from this Sail object.
|
connectionClosed, debugEnabled, getDataDir, initialize, initializeInternal, isInitialized, setDataDir, shutDown, shutDownInternal, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDataDir, getValueFactory, initialize, isWritable, setDataDir, shutDown
public NotifyingSailConnection getConnection() throws SailException
Sail
getConnection
in interface NotifyingSail
getConnection
in interface Sail
getConnection
in class SailBase
SailException
- If no transaction could be started, for example because the Sail
is not writable.protected abstract NotifyingSailConnection getConnectionInternal() throws SailException
SailBase
getConnectionInternal
in class SailBase
SailException
public void addSailChangedListener(SailChangedListener listener)
NotifyingSail
addSailChangedListener
in interface NotifyingSail
public void removeSailChangedListener(SailChangedListener listener)
NotifyingSail
removeSailChangedListener
in interface NotifyingSail
public void notifySailChanged(SailChangedEvent event)
Copyright © 2001-2016 Aduna. All Rights Reserved.