|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 java.lang.String |
id
|
protected java.lang.String |
match
|
protected java.lang.String |
pattern
|
protected java.lang.String |
propfile
|
protected RDBMSTopicMapReference |
reference
|
protected java.lang.String |
referenceId
|
protected java.lang.String |
title
|
Constructor Summary | |
---|---|
RDBMSPatternSingleTopicMapSource()
|
Method Summary | |
---|---|
protected RDBMSStorage |
createStorage()
|
TopicMapReferenceIF |
createTopicMap(java.lang.String name,
java.lang.String baseAddress)
PUBLIC: Creates a new topic map in the underlying source and returns a reference to the created topic map. |
java.lang.String |
getBaseAddress()
PUBLIC: Gets the base address of the topic maps retrieved from the source. |
java.lang.String |
getId()
PUBLIC: Gets the id of the source. |
java.lang.String |
getMatch()
PUBLIC: Returns the match type used by the source. |
java.lang.String |
getPattern()
PUBLIC: Returns the pattern value used by the source. |
java.lang.String |
getPropertyFile()
PUBLIC: Gets the database property file containing configuration parameters for accessing the rdbms database. |
java.lang.String |
getReferenceId()
PUBLIC: Gets the id of the topic map reference for this topic map source. |
java.util.Collection |
getReferences()
PUBLIC: Returns an unmodifiable collection of TopicMapReferenceIF s found by the topic map source. |
java.lang.String |
getTitle()
PUBLIC: Gets the title of the source. |
void |
refresh()
PUBLIC: Refreshes the collection of references. |
void |
setBaseAddress(java.lang.String base_address)
PUBLIC: Sets the base address of the topic maps retrieved from the source. |
void |
setId(java.lang.String id)
PUBLIC: Sets the id of the source. |
void |
setMatch(java.lang.String match)
PUBLIC: Sets the match type used by the source. |
void |
setPattern(java.lang.String pattern)
PUBLIC: Sets the pattern value used by the source. |
void |
setPropertyFile(java.lang.String propfile)
PUBLIC: Sets the database property file containing configuration parameters for accessing the rdbms database. |
void |
setReferenceId(java.lang.String referenceId)
PUBLIC: Sets the id of the topic map reference for this topic map source. |
void |
setTitle(java.lang.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 java.lang.String id
protected java.lang.String referenceId
protected java.lang.String title
protected LocatorIF base_address
protected java.lang.String propfile
protected java.lang.String match
protected java.lang.String pattern
protected RDBMSTopicMapReference reference
Constructor Detail |
---|
public RDBMSPatternSingleTopicMapSource()
Method Detail |
---|
public TopicMapReferenceIF createTopicMap(java.lang.String name, java.lang.String baseAddress)
TopicMapSourceIF
createTopicMap
in interface TopicMapSourceIF
public java.util.Collection getReferences()
TopicMapSourceIF
TopicMapReferenceIF
s found by the topic map source.
getReferences
in interface TopicMapSourceIF
public void refresh()
TopicMapSourceIF
refresh
in interface TopicMapSourceIF
public java.lang.String getId()
TopicMapSourceIF
getId
in interface TopicMapSourceIF
public void setId(java.lang.String id)
TopicMapSourceIF
UnsupportedOperationException
if it does not support
setting the id.
setId
in interface TopicMapSourceIF
public java.lang.String getTitle()
TopicMapSourceIF
getTitle
in interface TopicMapSourceIF
public void setTitle(java.lang.String title)
TopicMapSourceIF
setTitle
in interface TopicMapSourceIF
public java.lang.String getMatch()
public void setMatch(java.lang.String match)
public java.lang.String getPattern()
public void setPattern(java.lang.String pattern)
public boolean supportsCreate()
TopicMapSourceIF
supportsCreate
in interface TopicMapSourceIF
public boolean supportsDelete()
TopicMapSourceIF
supportsDelete
in interface TopicMapSourceIF
protected RDBMSStorage createStorage() throws java.io.IOException
java.io.IOException
public java.lang.String getPropertyFile()
public void setPropertyFile(java.lang.String propfile)
public java.lang.String getReferenceId()
public void setReferenceId(java.lang.String referenceId)
public java.lang.String getBaseAddress()
public void setBaseAddress(java.lang.String base_address)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |