public abstract class AbstractTopicMapStore extends Object implements TopicMapStoreIF
| Modifier and Type | Field and Description |
|---|---|
protected LocatorIF |
base_address |
protected boolean |
closed |
protected boolean |
deleted |
protected boolean |
open |
protected boolean |
readonly |
protected boolean |
readonlySet |
protected TopicMapReferenceIF |
reference |
TopicMapListenerIF[] |
topic_listeners |
IN_MEMORY_IMPLEMENTATION, RDBMS_IMPLEMENTATION| Constructor and Description |
|---|
AbstractTopicMapStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
PUBLIC: Aborts and deactivates the top-level transaction; all
changes made inside the root transaction are lost.
|
abstract void |
close(boolean returnToPool) |
void |
commit()
PUBLIC: Commits and deactivates the top-level transaction.
|
void |
delete(boolean force)
PUBLIC: Deletes the TopicMapIF from the data store.
|
LocatorIF |
getBaseAddress()
PUBLIC: Gets a locator of the topic map in the store.
|
abstract EventManagerIF |
getEventManager() |
TopicMapReferenceIF |
getReference()
INTERNAL: Returns a topic map reference for this store.
|
TopicMapIF |
getTopicMap()
PUBLIC: Gets the topic map that is accessible through the
root transaction of the store.
|
abstract TopicMapTransactionIF |
getTransaction() |
boolean |
isOpen()
PUBLIC: Returns true if the store is open (because opening a
transactional store starts a transaction, "true" also means a
transaction is in progress).
|
boolean |
isReadOnly()
PUBLIC: Returns true if the store is usable for read-only
purposes only.
|
void |
open()
PUBLIC: Opens the store, and starts a new transaction on a transactional store.
|
void |
setReadOnly(boolean readonly) |
void |
setReference(TopicMapReferenceIF reference)
INTERNAL: Sets the topic map reference for this store.
|
void |
setTopicListeners(TopicMapListenerIF[] listeners) |
boolean |
validate() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getImplementation, getProperty, isTransactional, setBaseAddressprotected LocatorIF base_address
protected boolean open
protected boolean closed
protected boolean deleted
protected boolean readonly
protected boolean readonlySet
protected TopicMapReferenceIF reference
public TopicMapListenerIF[] topic_listeners
public boolean isOpen()
TopicMapStoreIFisOpen in interface TopicMapStoreIFpublic void open()
TopicMapStoreIFopen in interface TopicMapStoreIFpublic abstract TopicMapTransactionIF getTransaction()
public TopicMapIF getTopicMap()
TopicMapStoreIFgetTopicMap in interface TopicMapStoreIFpublic LocatorIF getBaseAddress()
TopicMapStoreIFgetBaseAddress in interface TopicMapStoreIFpublic void commit()
TopicMapStoreIFcommit in interface TopicMapStoreIFpublic void abort()
TopicMapStoreIFabort in interface TopicMapStoreIFpublic void delete(boolean force)
throws NotRemovableException
TopicMapStoreIFIf the force flag is false and the topic map contains any objects, i.e. topics and associations, a NotRemovableException will be thrown. The topic map will not be modified or closed if this is so.
If the force flag is true, the topic map will be deleted even if it contains any objects.
Note: if you're retrieved the store via a TopicMapReferenceIF then call delete(boolean) on the reference instead.
delete in interface TopicMapStoreIFNotRemovableExceptionpublic boolean isReadOnly()
TopicMapStoreIFisReadOnly in interface TopicMapStoreIFpublic void setReadOnly(boolean readonly)
public TopicMapReferenceIF getReference()
TopicMapStoreIFgetReference in interface TopicMapStoreIFpublic void setReference(TopicMapReferenceIF reference)
TopicMapStoreIFsetReference in interface TopicMapStoreIFpublic boolean validate()
public abstract void close(boolean returnToPool)
public void setTopicListeners(TopicMapListenerIF[] listeners)
public abstract EventManagerIF getEventManager()