|
||||||||||
| 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<String,String> |
properties
|
protected String |
propfile
|
protected Map<String,TopicMapReferenceIF> |
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<String,String> 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. |
protected RDBMSTopicMapReference |
createTopicMapReference(String referenceId,
String title,
RDBMSStorage storage,
long topicmapId,
LocatorIF baseAddress)
|
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(String baseAdress,
String title,
long topicmap_id)
|
Collection<TopicMapReferenceIF> |
getReferences()
PUBLIC: Returns an unmodifiable collection of TopicMapReferenceIFs 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<String,String> properties
protected String propfile
protected String topicListeners
protected Map<String,TopicMapReferenceIF> 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<String,String> properties)
| Method Detail |
|---|
public String getId()
TopicMapSourceIF
getId in interface TopicMapSourceIFpublic void setId(String id)
TopicMapSourceIFUnsupportedOperationException if it does not support
setting the id.
setId in interface TopicMapSourceIFpublic String getTitle()
TopicMapSourceIF
getTitle in interface TopicMapSourceIFpublic void setTitle(String title)
TopicMapSourceIF
setTitle in interface TopicMapSourceIFpublic String getBaseAddress()
public void setBaseAddress(String base_address)
public String getPropertyFile()
public void setPropertyFile(String propfile)
public Collection<TopicMapReferenceIF> getReferences()
TopicMapSourceIFTopicMapReferenceIFs found by the topic map source.
getReferences in interface TopicMapSourceIF
protected RDBMSStorage createStorage()
throws IOException
IOExceptionpublic void refresh()
TopicMapSourceIF
refresh in interface TopicMapSourceIF
protected String getReferenceId(String baseAdress,
String title,
long topicmap_id)
protected RDBMSTopicMapReference createTopicMapReference(String referenceId,
String title,
RDBMSStorage storage,
long topicmapId,
LocatorIF baseAddress)
public boolean supportsCreate()
TopicMapSourceIF
supportsCreate in interface TopicMapSourceIFpublic boolean getSupportsCreate()
public void setSupportsCreate(boolean supportsCreate)
public boolean supportsDelete()
TopicMapSourceIF
supportsDelete in interface TopicMapSourceIFpublic boolean getSupportsDelete()
public void setSupportsDelete(boolean supportsDelete)
public TopicMapReferenceIF createTopicMap(String name,
String baseAddress)
TopicMapSourceIF
createTopicMap in interface TopicMapSourceIFpublic 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 | |||||||||