|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ontopia.topicmaps.impl.rdbms.RDBMSPatternSingleTopicMapSource
public class RDBMSPatternSingleTopicMapSource
PUBLIC: A topic map source that refers to single reference that is located by pattern. If multiple topic maps match the pattern then the topic map with the highest object id is chosen. This source is therefore able to swap to later versions of the same topic map when the topic map repository is refreshed.
Field Summary | |
---|---|
protected LocatorIF |
base_address
|
protected String |
id
|
protected String |
match
|
protected String |
pattern
|
protected String |
propfile
|
protected RDBMSTopicMapReference |
reference
|
protected String |
referenceId
|
protected String |
title
|
Constructor Summary | |
---|---|
RDBMSPatternSingleTopicMapSource()
|
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. |
String |
getId()
PUBLIC: Gets the id of the source. |
String |
getMatch()
PUBLIC: Returns the match type used by the source. |
String |
getPattern()
PUBLIC: Returns the pattern value used by 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. |
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. |
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 |
setId(String id)
PUBLIC: Sets the id of the source. |
void |
setMatch(String match)
PUBLIC: Sets the match type used by the source. |
void |
setPattern(String pattern)
PUBLIC: Sets the pattern value used by 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. |
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 String id
protected String referenceId
protected String title
protected LocatorIF base_address
protected String propfile
protected String match
protected String pattern
protected RDBMSTopicMapReference reference
Constructor Detail |
---|
public RDBMSPatternSingleTopicMapSource()
Method Detail |
---|
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 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 getMatch()
public void setMatch(String match)
public String getPattern()
public void setPattern(String pattern)
public boolean supportsCreate()
TopicMapSourceIF
supportsCreate
in interface TopicMapSourceIF
public boolean supportsDelete()
TopicMapSourceIF
supportsDelete
in interface TopicMapSourceIF
protected RDBMSStorage createStorage() throws IOException
IOException
public String getPropertyFile()
public void setPropertyFile(String propfile)
public String getReferenceId()
public void setReferenceId(String referenceId)
public String getBaseAddress()
public void setBaseAddress(String base_address)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |