|
||||||||||
| 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.Topic
public class Topic
INTERNAL: The rdbms topic implementation.
| Field Summary | |
|---|---|
static String |
CLASS_INDICATOR
|
protected static String[] |
fields
|
protected static int |
LF_indicators
|
protected static int |
LF_names
|
protected static int |
LF_occurrences
|
protected static int |
LF_reified
|
protected static int |
LF_roles
|
protected static int |
LF_subjects
|
protected static int |
LF_types
|
| Fields inherited from class net.ontopia.persistence.proxy.AbstractRWPersistent |
|---|
id, MASKS, txn, values |
| Constructor Summary | |
|---|---|
Topic()
|
|
Topic(TransactionIF txn)
|
|
| Method Summary | |
|---|---|
int |
_p_getFieldCount()
|
void |
addSubjectIdentifier(LocatorIF subject_indicator)
PUBLIC: Adds the given subject identifier to the set of subject identifiers for this topic. |
void |
addSubjectLocator(LocatorIF subject_locator)
PUBLIC: Adds the given subject locator to the set of subject locators for this topic. |
void |
addType(TopicIF type)
PUBLIC: Adds a type to this topic. |
void |
detach()
|
String |
getClassIndicator()
INTERNAL: Returns the token that can be used to indicate the class of this instance. |
String |
getObjectId()
PUBLIC: Gets the id of this object. |
Collection<OccurrenceIF> |
getOccurrences()
PUBLIC: Gets the occurrences of this topic. |
ReifiableIF |
getReified()
PUBLIC: Returns the topic map object that this topic reifies. |
Collection<AssociationRoleIF> |
getRoles()
PUBLIC: Gets the association roles played by this topic. |
Collection<AssociationRoleIF> |
getRolesByType(TopicIF roletype)
PUBLIC: Gets the association roles of the specifed type played by this topic. |
Collection<AssociationRoleIF> |
getRolesByType(TopicIF roletype,
TopicIF assoc_type)
PUBLIC: Gets the association roles of the specifed type played by this topic. |
Collection<LocatorIF> |
getSubjectIdentifiers()
PUBLIC: Gets the subject identitifers of this topic. |
Collection<LocatorIF> |
getSubjectLocators()
PUBLIC: Gets the subject locators of this topic. |
Collection<TopicNameIF> |
getTopicNames()
PUBLIC: Gets the names of this topic. |
Collection<TopicIF> |
getTypes()
PUBLIC: Gets the types that this topic is an instance of. |
void |
merge(TopicIF topic)
EXPERIMENTAL: Merges the characteristics of one topic into another topic. |
void |
remove()
PUBLIC: Removes the object from its parent. |
void |
removeSubjectIdentifier(LocatorIF subject_indicator)
PUBLIC: Removes the given subject identifier from the set of subject identifiers for this topic. |
void |
removeSubjectLocator(LocatorIF subject_locator)
PUBLIC: Removes the given subject locator from the set of subject locators for this topic. |
void |
removeType(TopicIF type)
PUBLIC: Removes a type from this topic. |
String |
toString()
|
| Methods inherited from class net.ontopia.topicmaps.impl.rdbms.TMObject |
|---|
addItemIdentifier, fireEvent, getItemIdentifiers, getTopicMap, isReadOnly, removeItemIdentifier, transactionChanged |
| Methods inherited from class net.ontopia.persistence.proxy.AbstractRWPersistent |
|---|
_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, unsetValue, valueAdded, valueChanged, valueRemoved |
| 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, getTopicMap, isReadOnly, removeItemIdentifier |
| Field Detail |
|---|
protected static final int LF_subjects
protected static final int LF_indicators
protected static final int LF_types
protected static final int LF_names
protected static final int LF_occurrences
protected static final int LF_roles
protected static final int LF_reified
protected static final String[] fields
public static final String CLASS_INDICATOR
| Constructor Detail |
|---|
public Topic()
public Topic(TransactionIF txn)
| Method Detail |
|---|
public void detach()
detach in interface PersistentIFdetach in class AbstractRWPersistentpublic int _p_getFieldCount()
_p_getFieldCount in interface PersistentIFpublic String getClassIndicator()
TMObject
getClassIndicator in class TMObjectpublic String getObjectId()
TMObjectIF
getObjectId in interface TMObjectIFgetObjectId in class TMObjectpublic Collection<LocatorIF> getSubjectLocators()
TopicIF
getSubjectLocators in interface TopicIF
public void addSubjectLocator(LocatorIF subject_locator)
throws ConstraintViolationException
TopicIF
addSubjectLocator in interface TopicIFsubject_locator - A locator for the subject locator to be added;
an object implementing LocatorIF.
ConstraintViolationException - Thrown if the topic map
already has a topic with this subject locator.public void removeSubjectLocator(LocatorIF subject_locator)
TopicIF
removeSubjectLocator in interface TopicIFsubject_locator - A locator for the subject locator to be removed;
an object implementing LocatorIF.public Collection<LocatorIF> getSubjectIdentifiers()
TopicIF
getSubjectIdentifiers in interface TopicIF
public void addSubjectIdentifier(LocatorIF subject_indicator)
throws ConstraintViolationException
TopicIF
addSubjectIdentifier in interface TopicIFsubject_indicator - A locator for the subject identifier to be added;
an object implementing LocatorIF.
ConstraintViolationException - Thrown if the topic map
already has a topic with this addressable subject.public void removeSubjectIdentifier(LocatorIF subject_indicator)
TopicIF
removeSubjectIdentifier in interface TopicIFsubject_indicator - A locator for the subject identifier to be removed;
an object implementing LocatorIF.public Collection<TopicNameIF> getTopicNames()
TopicIF
getTopicNames in interface TopicIFpublic Collection<OccurrenceIF> getOccurrences()
TopicIF
getOccurrences in interface TopicIFpublic Collection<AssociationRoleIF> getRoles()
TopicIF
getRoles in interface TopicIFpublic Collection<AssociationRoleIF> getRolesByType(TopicIF roletype)
TopicIF
getRolesByType in interface TopicIF
public Collection<AssociationRoleIF> getRolesByType(TopicIF roletype,
TopicIF assoc_type)
TopicIF
getRolesByType in interface TopicIFpublic void merge(TopicIF topic)
TopicIF
merge in interface TopicIFtopic - topicIF; the source topic. This is empty after the
operation and is removed from the topic map.public void remove()
TMObjectIF
remove in interface TMObjectIFpublic Collection<TopicIF> getTypes()
TopicIF
getTypes in interface TopicIFpublic void addType(TopicIF type)
TopicIF
addType in interface TopicIFtype - The additional type; an object implementing TopicIF.public void removeType(TopicIF type)
TopicIF
removeType in interface TopicIFtype - The type to be removed; an object implementing TopicIF.public ReifiableIF getReified()
TopicIF
getReified in interface TopicIFpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||