public class RDBMSSingleTopicMapSource extends Object implements TopicMapSourceIF
Modifier and Type | Field and Description |
---|---|
protected LocatorIF |
base_address |
protected boolean |
hidden |
protected String |
id |
protected String |
propfile |
protected RDBMSTopicMapReference |
reference |
protected String |
referenceId |
protected RDBMSStorage |
storage |
protected String |
title |
protected String |
topicListeners |
protected long |
topicmap_id |
Constructor and Description |
---|
RDBMSSingleTopicMapSource() |
Modifier and Type | Method and Description |
---|---|
void |
close()
PUBLIC: Closes the source by releasing references it holds to e.g.
|
protected RDBMSStorage |
createStorage() |
TopicMapReferenceIF |
createTopicMap(String name,
String baseAddress)
PUBLIC: Creates a new topic map in the underlying source
and returns a reference to the created topic map.
|
String |
getBaseAddress()
PUBLIC: Gets the base address of the topic maps retrieved from
the source.
|
boolean |
getHidden() |
String |
getId()
PUBLIC: Gets the id of the source.
|
String |
getPropertyFile()
PUBLIC: Gets the database property file containing configuration
parameters for accessing the rdbms database.
|
String |
getReferenceId()
PUBLIC: Gets the id of the topic map reference for this topic map
source.
|
protected String |
getReferenceId(long topicmap_id) |
Collection |
getReferences()
PUBLIC: Returns an unmodifiable collection of
TopicMapReferenceIF s found by the topic map source. |
String |
getTitle()
PUBLIC: Gets the title of the source.
|
String |
getTopicListeners() |
String |
getTopicMapId()
PUBLIC: Gets the id of the topic map referenced.
|
void |
refresh()
PUBLIC: Refreshes the collection of references.
|
void |
setBaseAddress(String base_address)
PUBLIC: Sets the base address of the topic maps retrieved from
the source.
|
void |
setHidden(boolean hidden) |
void |
setId(String id)
PUBLIC: Sets the id of the source.
|
void |
setPropertyFile(String propfile)
PUBLIC: Sets the database property file containing configuration
parameters for accessing the rdbms database.
|
void |
setReferenceId(String referenceId)
PUBLIC: Sets the id of the topic map reference for this topic map
source.
|
void |
setTitle(String title)
PUBLIC: Sets the title of the source.
|
void |
setTopicListeners(String topicListeners) |
void |
setTopicMapId(long id)
PUBLIC: Sets the id of the topic map referenced.
|
void |
setTopicMapId(String id)
PUBLIC: Sets the id of the topic map referenced.
|
boolean |
supportsCreate()
PUBLIC: Returns true if the source supports creating new
topic maps with the createTopicMap.
|
boolean |
supportsDelete()
PUBLIC: Returns true if the source supports deleting topic map
with the TopicMapReferenceIF.delete() method.
|
protected String id
protected String referenceId
protected String title
protected String propfile
protected long topicmap_id
protected LocatorIF base_address
protected boolean hidden
protected String topicListeners
protected RDBMSTopicMapReference reference
protected RDBMSStorage storage
public TopicMapReferenceIF createTopicMap(String name, String baseAddress)
TopicMapSourceIF
createTopicMap
in interface TopicMapSourceIF
public Collection getReferences()
TopicMapSourceIF
TopicMapReferenceIF
s found by the topic map source.getReferences
in interface TopicMapSourceIF
public void refresh()
TopicMapSourceIF
refresh
in interface TopicMapSourceIF
public void close()
TopicMapSourceIF
close
in interface AutoCloseable
close
in interface TopicMapSourceIF
public String getId()
TopicMapSourceIF
getId
in interface TopicMapSourceIF
public void setId(String id)
TopicMapSourceIF
UnsupportedOperationException
if it does not support
setting the id.setId
in interface TopicMapSourceIF
public String getTitle()
TopicMapSourceIF
getTitle
in interface TopicMapSourceIF
public void setTitle(String title)
TopicMapSourceIF
setTitle
in interface TopicMapSourceIF
public boolean supportsCreate()
TopicMapSourceIF
supportsCreate
in interface TopicMapSourceIF
public boolean supportsDelete()
TopicMapSourceIF
supportsDelete
in interface TopicMapSourceIF
protected RDBMSStorage createStorage() throws IOException
IOException
protected String getReferenceId(long topicmap_id)
public String getPropertyFile()
public void setPropertyFile(String propfile)
public String getTopicMapId()
public void setTopicMapId(String id)
public void setTopicMapId(long id)
public String getReferenceId()
public void setReferenceId(String referenceId)
public String getBaseAddress()
public void setBaseAddress(String base_address)
public boolean getHidden()
public void setHidden(boolean hidden)
public String getTopicListeners()
public void setTopicListeners(String topicListeners)