|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ontopia.topicmaps.impl.rdbms.RDBMSTopicMapSource
public class RDBMSTopicMapSource
PUBLIC: A topic map source that holds the list of all topic map references accessible by a rdbms session.
Field Summary | |
---|---|
protected LocatorIF |
base_address
|
protected boolean |
hidden
|
protected String |
id
|
protected Map |
properties
|
protected String |
propfile
|
protected Map |
refmap
|
protected RDBMSStorage |
storage
|
protected boolean |
supportsCreate
|
protected boolean |
supportsDelete
|
protected String |
title
|
protected String |
topicListeners
|
Constructor Summary | |
---|---|
RDBMSTopicMapSource()
PUBLIC: Creates an rdbms topic map source. |
|
RDBMSTopicMapSource(Map properties)
INTERNAL: Creates an rdbms topic map source with the specified database properties. |
|
RDBMSTopicMapSource(String propfile)
INTERNAL: Creates an rdbms topic map source with the database property file set. |
Method Summary | |
---|---|
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. |
protected String |
getReferenceId(long topicmap_id)
|
Collection |
getReferences()
PUBLIC: Returns an unmodifiable collection of TopicMapReferenceIF s found by the topic map source. |
boolean |
getSupportsCreate()
|
boolean |
getSupportsDelete()
|
String |
getTitle()
PUBLIC: Gets the title of the source. |
String |
getTopicListeners()
|
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 |
setSupportsCreate(boolean supportsCreate)
|
void |
setSupportsDelete(boolean supportsDelete)
|
void |
setTitle(String title)
PUBLIC: Sets the title of the source. |
void |
setTopicListeners(String topicListeners)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean supportsCreate
protected boolean supportsDelete
protected LocatorIF base_address
protected boolean hidden
protected String id
protected String title
protected Map properties
protected String propfile
protected String topicListeners
protected Map refmap
protected RDBMSStorage storage
Constructor Detail |
---|
public RDBMSTopicMapSource()
If the property file has not been given the 'net.ontopia.topicmaps.impl.rdbms.PropertyFile' system properties will be used.
public RDBMSTopicMapSource(String propfile)
public RDBMSTopicMapSource(Map properties)
Method Detail |
---|
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 String getBaseAddress()
public void setBaseAddress(String base_address)
public String getPropertyFile()
public void setPropertyFile(String propfile)
public Collection getReferences()
TopicMapSourceIF
TopicMapReferenceIF
s found by the topic map source.
getReferences
in interface TopicMapSourceIF
protected RDBMSStorage createStorage() throws IOException
IOException
public void refresh()
TopicMapSourceIF
refresh
in interface TopicMapSourceIF
protected String getReferenceId(long topicmap_id)
public boolean supportsCreate()
TopicMapSourceIF
supportsCreate
in interface TopicMapSourceIF
public boolean getSupportsCreate()
public void setSupportsCreate(boolean supportsCreate)
public boolean supportsDelete()
TopicMapSourceIF
supportsDelete
in interface TopicMapSourceIF
public boolean getSupportsDelete()
public void setSupportsDelete(boolean supportsDelete)
public TopicMapReferenceIF createTopicMap(String name, String baseAddress)
TopicMapSourceIF
createTopicMap
in interface TopicMapSourceIF
public boolean getHidden()
public void setHidden(boolean hidden)
public String getTopicListeners()
public void setTopicListeners(String topicListeners)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |