public class TopicMap extends TMObject implements TopicMapIF
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_INDICATOR |
protected static String[] |
fields |
protected static int |
LF_base_address |
protected static int |
LF_comments |
protected static int |
LF_reifier |
protected static int |
LF_sources |
protected static int |
LF_title |
protected RDBMSTopicMapTransaction |
transaction |
LF_topicmapid, MASKS, txn, valuesEVENT_ADD_ASSOCIATION, EVENT_ADD_TOPIC, EVENT_REMOVE_ASSOCIATION, EVENT_REMOVE_TOPICEVENT_SET_REIFIEREVENT_ADD_ITEMIDENTIFIER, EVENT_REMOVE_ITEMIDENTIFIER, MSG_NULL_ARGUMENT| Constructor and Description |
|---|
TopicMap() |
TopicMap(TransactionIF txn) |
| Modifier and Type | Method and Description |
|---|---|
int |
_p_getFieldCount() |
protected void |
addAssociation(AssociationIF association)
Adds an association to the set of associations.
|
protected void |
addTopic(TopicIF topic)
Adds a topic to the set of topics.
|
void |
clear()
PUBLIC: Clears the topic map by removing all topics and associations.
|
void |
detach() |
Collection<AssociationIF> |
getAssocations(TopicIF topic) |
Collection<AssociationIF> |
getAssociations()
PUBLIC: Gets all associations in this topic map.
|
Collection<AssociationIF> |
getAssociationsByType(TopicIF topic,
TopicIF type) |
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.
|
String |
getComments() |
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<AssociationRoleIF> |
getRolesByType(TopicIF player,
TopicIF rtype) |
Collection<AssociationRoleIF> |
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 |
remove()
PUBLIC: Removes the object from its parent.
|
protected void |
removeAssociation(AssociationIF association)
Removes an associations from the set of associations.
|
protected void |
removeTopic(TopicIF topic)
Removes a topic from the set of topics.
|
void |
setBaseAddress(LocatorIF baseAddress) |
void |
setComments(String comments) |
void |
setReifier(TopicIF _reifier)
PUBLIC: Sets the reifier of this object.
|
void |
setTitle(String title) |
protected void |
setTopicMap(TopicMapIF topicmap) |
void |
setTransaction(RDBMSTopicMapTransaction transaction) |
void |
syncAfterMerge(IdentityIF source,
IdentityIF target) |
String |
toString() |
addItemIdentifier, fireEvent, getItemIdentifiers, getLongId, isReadOnly, removeItemIdentifier, transactionChanged_p_getIdentity, _p_getTransaction, _p_getType, _p_setIdentity, _p_setTransaction, _p_toString, clearAll, detachCollectionField, detachField, executeQuery, getValue, isDeleted, isDirty, isDirty, isDirtyFlushed, isDirtyFlushed, isInDatabase, isLoaded, isNewObject, isPersistent, isTransient, loadCollectionField, loadField, loadFieldNoCheck, loadValue, nextDirty, nextDirty, nextDirtyFlushed, nextDirtyFlushed, setDeleted, setDirty, setDirtyFlushed, setInDatabase, setNewObject, setPersistent, setValue, syncFieldsAfterMerge, unsetValue, valueAdded, valueChanged, valueRemovedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddItemIdentifier, getItemIdentifiers, isReadOnly, removeItemIdentifierpublic static final String CLASS_INDICATOR
protected static final int LF_sources
protected static final int LF_title
protected static final int LF_base_address
protected static final int LF_comments
protected static final int LF_reifier
protected static final String[] fields
protected transient RDBMSTopicMapTransaction transaction
public TopicMap()
public TopicMap(TransactionIF txn)
public void detach()
detach in interface PersistentIFdetach in class AbstractRWPersistentpublic LocatorIF getBaseAddress()
public void setBaseAddress(LocatorIF baseAddress)
public String getTitle()
public void setTitle(String title)
public String getComments()
public void setComments(String comments)
public int _p_getFieldCount()
_p_getFieldCount in interface PersistentIFpublic String getClassIndicator()
TMObjectgetClassIndicator in class TMObjectpublic String getObjectId()
TMObjectIFgetObjectId in interface TMObjectIFgetObjectId in class TMObjectpublic TopicMapIF getTopicMap()
TMObjectIFgetTopicMap in interface TMObjectIFgetTopicMap in class TMObjectprotected void setTopicMap(TopicMapIF topicmap)
public TopicMapStoreIF getStore()
TopicMapIFgetStore in interface TopicMapIFpublic TopicMapTransactionIF getTransaction()
public TopicMapBuilderIF getBuilder()
TopicMapIFgetBuilder in interface TopicMapIFpublic Object getIndex(String name)
TopicMapIFgetIndex 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()
TopicMapIFgetTopics in interface TopicMapIFprotected void addTopic(TopicIF topic)
protected void removeTopic(TopicIF topic)
public Collection<AssociationIF> getAssociations()
TopicMapIFgetAssociations in interface TopicMapIFprotected void addAssociation(AssociationIF association)
protected void removeAssociation(AssociationIF association)
public TMObjectIF getObjectById(String object_id)
TopicMapIFgetObjectById in interface TopicMapIFobject_id - A string; the object id of the object to get.public void remove()
TMObjectIFremove in interface TMObjectIFpublic void clear()
TopicMapIFclear in interface TopicMapIFpublic TMObjectIF getObjectByItemIdentifier(LocatorIF locator)
TopicMapIFgetObjectByItemIdentifier in interface TopicMapIFlocator - The given locator; an object implementing LocatorIF.public TopicIF getTopicBySubjectLocator(LocatorIF locator)
TopicMapIFgetTopicBySubjectLocator in interface TopicMapIFlocator - The given locator; an object implementing LocatorIF.public TopicIF getTopicBySubjectIdentifier(LocatorIF locator)
TopicMapIFgetTopicBySubjectIdentifier in interface TopicMapIFlocator - The given locator; an object implementing LocatorIF.public Collection<AssociationRoleIF> getRolesByType(TopicIF player, TopicIF rtype)
public Collection<AssociationRoleIF> 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> getAssociationsByType(TopicIF topic, TopicIF type)
public TopicIF getReifier()
ReifiableIFgetReifier in interface ReifiableIFpublic void setReifier(TopicIF _reifier)
ReifiableIFsetReifier in interface ReifiableIFpublic void syncAfterMerge(IdentityIF source, IdentityIF target)
syncAfterMerge in class AbstractRWPersistent