|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.persistence.proxy.AbstractROPersistent
net.ontopia.topicmaps.impl.rdbms.ReadOnlyTMObject
net.ontopia.topicmaps.impl.rdbms.ReadOnlyTopicMap
public class ReadOnlyTopicMap
INTERNAL: The read-only rdbms topic map implementation.
| Field Summary | |
|---|---|
protected RDBMSTopicMapTransaction |
transaction
|
| Fields inherited from class net.ontopia.persistence.proxy.AbstractROPersistent |
|---|
id, txn |
| Fields inherited from interface net.ontopia.topicmaps.core.TopicMapIF |
|---|
EVENT_ADD_ASSOCIATION, EVENT_ADD_TOPIC, EVENT_REMOVE_ASSOCIATION, EVENT_REMOVE_TOPIC |
| Fields inherited from interface net.ontopia.topicmaps.core.ReifiableIF |
|---|
EVENT_SET_REIFIER |
| Fields inherited from interface net.ontopia.topicmaps.core.TMObjectIF |
|---|
EVENT_ADD_ITEMIDENTIFIER, EVENT_REMOVE_ITEMIDENTIFIER |
| Constructor Summary | |
|---|---|
ReadOnlyTopicMap()
|
|
| Method Summary | |
|---|---|
int |
_p_getFieldCount()
|
void |
clear()
PUBLIC: Clears the topic map by removing all topics and associations. |
Collection<AssociationIF> |
getAssocations(TopicIF topic)
|
Collection<AssociationIF> |
getAssocationsByType(TopicIF topic,
TopicIF type)
|
Collection |
getAssociations()
PUBLIC: Gets all associations in this topic map. |
LocatorIF |
getBaseAddress()
|
TopicMapBuilderIF |
getBuilder()
PUBLIC: Gets a topic map builder for use with this transaction. |
String |
getClassIndicator()
INTERNAL: Returns the token that can be used to indicate the class of this instance. |
Object |
getIndex(String name)
PUBLIC: Gets an index by name. |
TMObjectIF |
getObjectById(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. |
String |
getObjectId()
PUBLIC: Gets the id of this object. |
Collection<OccurrenceIF> |
getOccurrencesByType(TopicIF topic,
TopicIF type)
|
TopicIF |
getReifier()
PUBLIC: Returns the topic that reifies this object. |
Collection |
getRolesByType(TopicIF player,
TopicIF rtype)
|
Collection |
getRolesByType(TopicIF player,
TopicIF rtype,
TopicIF atype)
|
TopicMapStoreIF |
getStore()
PUBLIC: Gets the store to which the topic map's transaction is connected. |
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. |
Collection<TopicNameIF> |
getTopicNamesByType(TopicIF topic,
TopicIF type)
|
Collection<TopicIF> |
getTopics()
PUBLIC: Gets all topics in this topic map. |
TopicMapTransactionIF |
getTransaction()
|
void |
setBaseAddress(LocatorIF baseAddress)
|
void |
setReifier(TopicIF reifier)
PUBLIC: Sets the reifier of this object. |
void |
setTitle(String title)
|
void |
setTransaction(RDBMSTopicMapTransaction transaction)
|
String |
toString()
|
| Methods inherited from class net.ontopia.topicmaps.impl.rdbms.ReadOnlyTMObject |
|---|
addItemIdentifier, getItemIdentifiers, isReadOnly, remove, removeItemIdentifier |
| Methods inherited from class net.ontopia.persistence.proxy.AbstractROPersistent |
|---|
_p_getIdentity, _p_getTransaction, _p_getType, _p_setIdentity, _p_setTransaction, _p_toString, clearAll, detach, executeQuery, isDeleted, isDirty, isDirty, isDirtyFlushed, isDirtyFlushed, isInDatabase, isLoaded, isNewObject, isPersistent, isTransient, loadCollectionField, loadField, loadFieldNoCheck, loadValue, nextDirty, nextDirty, nextDirtyFlushed, nextDirtyFlushed, setDeleted, setDirty, setDirtyFlushed, setInDatabase, setNewObject, setPersistent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.ontopia.topicmaps.core.TMObjectIF |
|---|
addItemIdentifier, getItemIdentifiers, isReadOnly, remove, removeItemIdentifier |
| Field Detail |
|---|
protected transient RDBMSTopicMapTransaction transaction
| Constructor Detail |
|---|
public ReadOnlyTopicMap()
| Method Detail |
|---|
public LocatorIF getBaseAddress()
public void setBaseAddress(LocatorIF baseAddress)
public String getTitle()
public void setTitle(String title)
public int _p_getFieldCount()
_p_getFieldCount in interface PersistentIFpublic String getClassIndicator()
ReadOnlyTMObject
getClassIndicator in class ReadOnlyTMObjectpublic String getObjectId()
TMObjectIF
getObjectId in interface TMObjectIFgetObjectId in class ReadOnlyTMObjectpublic TopicMapIF getTopicMap()
TMObjectIF
getTopicMap in interface TMObjectIFgetTopicMap in class ReadOnlyTMObjectpublic TopicMapStoreIF getStore()
TopicMapIF
getStore in interface TopicMapIFpublic TopicMapTransactionIF getTransaction()
public TopicMapBuilderIF getBuilder()
TopicMapIF
getBuilder in interface TopicMapIFpublic Object getIndex(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 Collection<TopicIF> getTopics()
TopicMapIF
getTopics in interface TopicMapIFpublic Collection getAssociations()
TopicMapIF
getAssociations in interface TopicMapIFpublic TMObjectIF getObjectById(String object_id)
TopicMapIF
getObjectById in interface TopicMapIFobject_id - A string; the object id of the object to get.
public void clear()
TopicMapIF
clear in interface TopicMapIFpublic String toString()
toString in class Objectpublic 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 Collection getRolesByType(TopicIF player,
TopicIF rtype)
public Collection getRolesByType(TopicIF player,
TopicIF rtype,
TopicIF atype)
public Collection<OccurrenceIF> getOccurrencesByType(TopicIF topic,
TopicIF type)
public Collection<TopicNameIF> getTopicNamesByType(TopicIF topic,
TopicIF type)
public Collection<AssociationIF> getAssocations(TopicIF topic)
public Collection<AssociationIF> getAssocationsByType(TopicIF topic,
TopicIF type)
public TopicIF getReifier()
ReifiableIF
getReifier in interface ReifiableIFpublic void setReifier(TopicIF reifier)
ReifiableIF
setReifier in interface ReifiableIF
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||