public class RDBMSTopicMapReference extends AbstractTopicMapReference
| Modifier and Type | Field and Description |
|---|---|
protected LocatorIF |
base_address |
static String |
EXHAUSED_BLOCK |
static String |
EXHAUSED_FAIL |
static String |
EXHAUSED_GROW |
protected StorePoolableObjectFactory |
ofactory |
protected org.apache.commons.pool.impl.GenericObjectPool |
pool |
protected RDBMSTopicMapStore |
rostore |
protected StorageIF |
storage |
protected long |
topicmap_id |
deleted, id, isopen, listeners, source, title, topic_listeners| Constructor and Description |
|---|
RDBMSTopicMapReference(String _id,
String _title,
StorageIF _storage,
long _topicmap_id,
LocatorIF _base_address) |
| Modifier and Type | Method and Description |
|---|---|
protected RDBMSTopicMapStore |
_createStore(boolean readonly) |
void |
clear()
EXPERIMENTAL: Closes all open stores and clears the topic map by
removing all data.
|
void |
close()
PUBLIC: Closes all open stores and the reference itself.
|
TopicMapStoreIF |
createStore(boolean readonly)
PUBLIC: Creates a topic map store that lets you access the
referenced topic map.
|
void |
delete()
PUBLIC: Closes all open stores and deletes the topic map.
|
LocatorIF |
getBaseAddress()
INTERNAL: Returns the base address locator to be used when loading
the topic map.
|
long |
getTopicMapId() |
protected void |
init() |
void |
open()
PUBLIC: Opens the reference.
|
void |
setBaseAddress(LocatorIF base_address)
INTERNAL: Sets the base address locator to be used when loading
the topic map and persists it in the database.
|
void |
setTitle(String title)
PUBLIC: Sets the title of the reference.
|
void |
storeClosed(TopicMapStoreIF store)
INTERNAL: Callback from the specified TopicMapStoreIF after it
has been closed.
|
String |
toString() |
void |
writeReport(Writer out,
boolean dumpCaches) |
addTopicListener, getId, getSource, getTitle, getTopicListeners, isDeleted, isOpen, makeListenerArray, registerTopicListeners, removeTopicListener, setId, setSource, setTopicListenerspublic static final String EXHAUSED_BLOCK
public static final String EXHAUSED_GROW
public static final String EXHAUSED_FAIL
protected StorageIF storage
protected long topicmap_id
protected LocatorIF base_address
protected StorePoolableObjectFactory ofactory
protected org.apache.commons.pool.impl.GenericObjectPool pool
protected RDBMSTopicMapStore rostore
protected RDBMSTopicMapStore _createStore(boolean readonly)
protected void init()
public void open()
TopicMapReferenceIFopen in interface TopicMapReferenceIFopen in class AbstractTopicMapReferencepublic TopicMapStoreIF createStore(boolean readonly)
TopicMapReferenceIFcreateStore in interface TopicMapReferenceIFcreateStore in class AbstractTopicMapReferencepublic void setTitle(String title)
TopicMapReferenceIFsetTitle in interface TopicMapReferenceIFsetTitle in class AbstractTopicMapReferencepublic LocatorIF getBaseAddress()
public void setBaseAddress(LocatorIF base_address)
public void close()
TopicMapReferenceIFclose in interface AutoCloseableclose in interface TopicMapReferenceIFclose in class AbstractTopicMapReferencepublic void clear()
TopicMapReferenceIFclear in interface TopicMapReferenceIFclear in class AbstractTopicMapReferencepublic void delete()
TopicMapReferenceIFdelete in interface TopicMapReferenceIFdelete in class AbstractTopicMapReferencepublic long getTopicMapId()
public void storeClosed(TopicMapStoreIF store)
TopicMapReferenceIFstoreClosed in interface TopicMapReferenceIFstoreClosed in class AbstractTopicMapReferencepublic void writeReport(Writer out, boolean dumpCaches) throws IOException
IOException