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, setTopicListeners
public 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()
TopicMapReferenceIF
open
in interface TopicMapReferenceIF
open
in class AbstractTopicMapReference
public TopicMapStoreIF createStore(boolean readonly)
TopicMapReferenceIF
createStore
in interface TopicMapReferenceIF
createStore
in class AbstractTopicMapReference
public void setTitle(String title)
TopicMapReferenceIF
setTitle
in interface TopicMapReferenceIF
setTitle
in class AbstractTopicMapReference
public LocatorIF getBaseAddress()
public void setBaseAddress(LocatorIF base_address)
public void close()
TopicMapReferenceIF
close
in interface AutoCloseable
close
in interface TopicMapReferenceIF
close
in class AbstractTopicMapReference
public void clear()
TopicMapReferenceIF
clear
in interface TopicMapReferenceIF
clear
in class AbstractTopicMapReference
public void delete()
TopicMapReferenceIF
delete
in interface TopicMapReferenceIF
delete
in class AbstractTopicMapReference
public long getTopicMapId()
public void storeClosed(TopicMapStoreIF store)
TopicMapReferenceIF
storeClosed
in interface TopicMapReferenceIF
storeClosed
in class AbstractTopicMapReference
public void writeReport(Writer out, boolean dumpCaches) throws IOException
IOException