|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.persistence.proxy.AbstractRWPersistent net.ontopia.topicmaps.impl.rdbms.TMObject
public abstract class TMObject
INTERNAL:
Field Summary |
---|
Fields inherited from class net.ontopia.persistence.proxy.AbstractRWPersistent |
---|
id, MASKS, txn, values |
Constructor Summary | |
---|---|
TMObject()
|
|
TMObject(TransactionIF txn)
|
Method Summary | |
---|---|
void |
addItemIdentifier(LocatorIF source_locator)
PUBLIC: Adds the given item identifier to the set of item item identifiers for this object. |
protected void |
fireEvent(java.lang.String event,
java.lang.Object new_value,
java.lang.Object old_value)
INTERNAL: Fires an event, so that listeners can be informed about the event. |
abstract java.lang.String |
getClassIndicator()
INTERNAL: Returns the token that can be used to indicate the class of this instance. |
java.util.Collection<LocatorIF> |
getItemIdentifiers()
PUBLIC: Gets the item identifiers of this object. |
abstract java.lang.String |
getObjectId()
PUBLIC: Gets the id of this object. |
TopicMapIF |
getTopicMap()
PUBLIC: Gets the topic map that this object belongs to. |
boolean |
isReadOnly()
PUBLIC: Returns true if this object is read-only, otherwise false. |
void |
removeItemIdentifier(LocatorIF source_locator)
PUBLIC: Removes the given item identifier from the set of item identifiers. |
protected void |
transactionChanged(TopicMap topicmap)
INTERNAL: Called when the transaction to which the object belongs has changed. |
Methods inherited from class net.ontopia.persistence.proxy.AbstractRWPersistent |
---|
_p_getIdentity, _p_getTransaction, _p_getType, _p_setIdentity, _p_setTransaction, _p_toString, clearAll, detach, 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, toString, wait, wait, wait |
Methods inherited from interface net.ontopia.topicmaps.core.TMObjectIF |
---|
remove |
Methods inherited from interface net.ontopia.persistence.proxy.PersistentIF |
---|
_p_getFieldCount |
Constructor Detail |
---|
public TMObject()
public TMObject(TransactionIF txn)
Method Detail |
---|
public abstract java.lang.String getClassIndicator()
protected void transactionChanged(TopicMap topicmap)
public abstract java.lang.String getObjectId()
TMObjectIF
getObjectId
in interface TMObjectIF
public boolean isReadOnly()
TMObjectIF
isReadOnly
in interface TMObjectIF
public TopicMapIF getTopicMap()
TMObjectIF
getTopicMap
in interface TMObjectIF
public java.util.Collection<LocatorIF> getItemIdentifiers()
TMObjectIF
The purpose is to enable the engine to detect when references to external objects refer to objects that are already present within the system, such as topic maps which are already loaded.
getItemIdentifiers
in interface TMObjectIF
public void addItemIdentifier(LocatorIF source_locator) throws ConstraintViolationException
TMObjectIF
addItemIdentifier
in interface TMObjectIF
source_locator
- The item identifier to be added; an object implementing LocatorIF.
ConstraintViolationException
- Thrown if another object
in the same topic map already has the given item
identifier.public void removeItemIdentifier(LocatorIF source_locator)
TMObjectIF
removeItemIdentifier
in interface TMObjectIF
source_locator
- The item identifier to be removed; an object implementing LocatorIF.protected void fireEvent(java.lang.String event, java.lang.Object new_value, java.lang.Object old_value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |