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, wait
close, getImplementation, getProperty, isTransactional, setBaseAddress
protected 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()
TopicMapStoreIF
isOpen
in interface TopicMapStoreIF
public void open()
TopicMapStoreIF
open
in interface TopicMapStoreIF
public abstract TopicMapTransactionIF getTransaction()
public TopicMapIF getTopicMap()
TopicMapStoreIF
getTopicMap
in interface TopicMapStoreIF
public LocatorIF getBaseAddress()
TopicMapStoreIF
getBaseAddress
in interface TopicMapStoreIF
public void commit()
TopicMapStoreIF
commit
in interface TopicMapStoreIF
public void abort()
TopicMapStoreIF
abort
in interface TopicMapStoreIF
public void delete(boolean force) throws NotRemovableException
TopicMapStoreIF
If 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 TopicMapStoreIF
NotRemovableException
public boolean isReadOnly()
TopicMapStoreIF
isReadOnly
in interface TopicMapStoreIF
public void setReadOnly(boolean readonly)
public TopicMapReferenceIF getReference()
TopicMapStoreIF
getReference
in interface TopicMapStoreIF
public void setReference(TopicMapReferenceIF reference)
TopicMapStoreIF
setReference
in interface TopicMapStoreIF
public boolean validate()
public abstract void close(boolean returnToPool)
public void setTopicListeners(TopicMapListenerIF[] listeners)
public abstract EventManagerIF getEventManager()