|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.persistence.proxy.AbstractRWPersistent
net.ontopia.topicmaps.impl.rdbms.TMObject
net.ontopia.topicmaps.impl.rdbms.TopicMap
public class TopicMap
INTERNAL: The rdbms topic map implementation.
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_INDICATOR
|
| Fields inherited from class net.ontopia.persistence.proxy.AbstractRWPersistent |
|---|
values |
| Constructor Summary | |
|---|---|
TopicMap()
|
|
TopicMap(net.ontopia.persistence.proxy.TransactionIF txn)
|
|
| Method Summary | |
|---|---|
int |
_p_getFieldCount()
|
void |
clear()
PUBLIC: Clears the topic map by removing all topics and associations. |
void |
detach()
|
java.util.Collection<AssociationIF> |
getAssociations()
PUBLIC: Gets all associations in this topic map. |
LocatorIF |
getBaseAddress()
|
TopicMapBuilderIF |
getBuilder()
PUBLIC: Gets a topic map builder for use with this transaction. |
java.lang.String |
getClassIndicator()
INTERNAL: Returns the token that can be used to indicate the class of this instance. |
java.lang.String |
getComments()
|
java.lang.Object |
getIndex(java.lang.String name)
PUBLIC: Gets an index by name. |
TMObjectIF |
getObjectById(java.lang.String object_id)
PUBLIC: Gets the topic map object that has the given object id, from this topic map. |
TMObjectIF |
getObjectByItemIdentifier(LocatorIF locator)
PUBLIC: Gets the topic map object that has the given item identifier (given as a LocatorIF object), from this topic map. |
java.lang.String |
getObjectId()
PUBLIC: Gets the id of this object. |
TopicIF |
getReifier()
PUBLIC: Returns the topic that reifies this object. |
java.util.Collection<AssociationRoleIF> |
getRolesByType(TopicIF player,
TopicIF rtype)
|
java.util.Collection<AssociationRoleIF> |
getRolesByType(TopicIF player,
TopicIF rtype,
TopicIF atype)
|
TopicMapStoreIF |
getStore()
PUBLIC: Gets the store to which the topic map's transaction is connected. |
java.lang.String |
getTitle()
|
TopicIF |
getTopicBySubjectIdentifier(LocatorIF locator)
PUBLIC: Gets the topic that has the specified subject identifier, given as a locator. |
TopicIF |
getTopicBySubjectLocator(LocatorIF locator)
PUBLIC: Gets the topic in this topic map that represents the given addressable subject (locator given as a LocatorIF object). |
TopicMapIF |
getTopicMap()
PUBLIC: Gets the topic map that this object belongs to. |
java.util.Collection<TopicIF> |
getTopics()
PUBLIC: Gets all topics in this topic map. |
net.ontopia.topicmaps.impl.utils.TopicMapTransactionIF |
getTransaction()
|
void |
remove()
PUBLIC: Removes the object from its parent. |
void |
setBaseAddress(LocatorIF baseAddress)
|
void |
setComments(java.lang.String comments)
|
void |
setReifier(TopicIF _reifier)
PUBLIC: Sets the reifier of this object. |
void |
setTitle(java.lang.String title)
|
void |
setTransaction(RDBMSTopicMapTransaction transaction)
|
java.lang.String |
toString()
|
| Methods inherited from class net.ontopia.topicmaps.impl.rdbms.TMObject |
|---|
addItemIdentifier, getItemIdentifiers, isReadOnly, removeItemIdentifier |
| Methods inherited from class net.ontopia.persistence.proxy.AbstractRWPersistent |
|---|
_p_getIdentity, _p_getTransaction, _p_getType, _p_setIdentity, _p_setTransaction, _p_toString, clearAll, isDeleted, isDirty, isDirty, isDirtyFlushed, isDirtyFlushed, isInDatabase, isLoaded, isNewObject, isPersistent, isTransient, loadValue, nextDirty, nextDirty, nextDirtyFlushed, nextDirtyFlushed, setDeleted, setDirty, setDirtyFlushed, setInDatabase, setNewObject, setPersistent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLASS_INDICATOR
| Constructor Detail |
|---|
public TopicMap()
public TopicMap(net.ontopia.persistence.proxy.TransactionIF txn)
| Method Detail |
|---|
public void detach()
detach in interface net.ontopia.persistence.proxy.PersistentIFdetach in class net.ontopia.persistence.proxy.AbstractRWPersistentpublic LocatorIF getBaseAddress()
public void setBaseAddress(LocatorIF baseAddress)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.lang.String getComments()
public void setComments(java.lang.String comments)
public int _p_getFieldCount()
_p_getFieldCount in interface net.ontopia.persistence.proxy.PersistentIFpublic java.lang.String getClassIndicator()
TMObject
getClassIndicator in class TMObjectpublic java.lang.String getObjectId()
TMObjectIF
getObjectId in interface TMObjectIFgetObjectId in class TMObjectpublic TopicMapIF getTopicMap()
TMObjectIF
getTopicMap in interface TMObjectIFgetTopicMap in class TMObjectpublic TopicMapStoreIF getStore()
TopicMapIF
getStore in interface TopicMapIFpublic net.ontopia.topicmaps.impl.utils.TopicMapTransactionIF getTransaction()
public TopicMapBuilderIF getBuilder()
TopicMapIF
getBuilder in interface TopicMapIFpublic java.lang.Object getIndex(java.lang.String name)
TopicMapIF
getIndex in interface TopicMapIFname - A string; the index name, i.e.g the interface that it
implements.
public void setTransaction(RDBMSTopicMapTransaction transaction)
public java.util.Collection<TopicIF> getTopics()
TopicMapIF
getTopics in interface TopicMapIFpublic java.util.Collection<AssociationIF> getAssociations()
TopicMapIF
getAssociations in interface TopicMapIFpublic TMObjectIF getObjectById(java.lang.String object_id)
TopicMapIF
getObjectById in interface TopicMapIFobject_id - A string; the object id of the object to get.
public void remove()
TMObjectIF
remove in interface TMObjectIFpublic void clear()
TopicMapIF
clear in interface TopicMapIFpublic TMObjectIF getObjectByItemIdentifier(LocatorIF locator)
TopicMapIF
getObjectByItemIdentifier in interface TopicMapIFlocator - The given locator; an object implementing LocatorIF.
public TopicIF getTopicBySubjectLocator(LocatorIF locator)
TopicMapIF
getTopicBySubjectLocator in interface TopicMapIFlocator - The given locator; an object implementing LocatorIF.
public TopicIF getTopicBySubjectIdentifier(LocatorIF locator)
TopicMapIF
getTopicBySubjectIdentifier in interface TopicMapIFlocator - The given locator; an object implementing LocatorIF.
public java.util.Collection<AssociationRoleIF> getRolesByType(TopicIF player,
TopicIF rtype)
public java.util.Collection<AssociationRoleIF> getRolesByType(TopicIF player,
TopicIF rtype,
TopicIF atype)
public TopicIF getReifier()
ReifiableIF
getReifier in interface ReifiableIFpublic void setReifier(TopicIF _reifier)
ReifiableIF
setReifier in interface ReifiableIFpublic java.lang.String toString()
toString in class java.lang.Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||