public abstract class NotifyingSailBase extends SailBase implements NotifyingSail
connectionTimeOut, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_ITERATION_SYNC_THRESHOLD, 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.
|
addSupportedIsolationLevel, connectionClosed, debugEnabled, getDataDir, getDefaultIsolationLevel, getIterationCacheSyncThreshold, getSupportedIsolationLevels, initialize, initializeInternal, isInitialized, removeSupportedIsolationLevel, setDataDir, setDefaultIsolationLevel, setIterationCacheSyncThreshold, setSupportedIsolationLevels, setSupportedIsolationLevels, shutDown, shutDownInternal, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDataDir, getDefaultIsolationLevel, getSupportedIsolationLevels, getValueFactory, initialize, isWritable, setDataDir, shutDownpublic NotifyingSailConnection getConnection() throws SailException
SailgetConnection in interface NotifyingSailgetConnection in interface SailgetConnection in class SailBaseSailException - If no transaction could be started, for example because the Sail
is not writable.protected abstract NotifyingSailConnection getConnectionInternal() throws SailException
SailBasegetConnectionInternal in class SailBaseSailExceptionpublic void addSailChangedListener(SailChangedListener listener)
NotifyingSailaddSailChangedListener in interface NotifyingSailpublic void removeSailChangedListener(SailChangedListener listener)
NotifyingSailremoveSailChangedListener in interface NotifyingSailpublic void notifySailChanged(SailChangedEvent event)
Copyright © 2001–2015 Aduna. All rights reserved.