public abstract class TMObject extends AbstractRWPersistent implements TMObjectIF
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_INDICATOR |
protected static int |
LF_sources |
protected static int |
LF_topicmap |
id, MASKS, txn, valuesEVENT_ADD_ITEMIDENTIFIER, EVENT_REMOVE_ITEMIDENTIFIER, MSG_NULL_ARGUMENT| Constructor and Description |
|---|
TMObject() |
TMObject(TransactionIF txn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItemIdentifier(LocatorIF source_locator)
PUBLIC: Adds the given item identifier to the set of item
item identifiers for this object.
|
protected void |
fireEvent(String event,
Object new_value,
Object old_value)
INTERNAL: Fires an event, so that listeners can be informed about
the event.
|
abstract String |
getClassIndicator()
INTERNAL: Returns the token that can be used to indicate the
class of this instance.
|
Collection<LocatorIF> |
getItemIdentifiers()
PUBLIC: Gets the item identifiers of this object.
|
protected long |
getLongId() |
abstract 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.
|
_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, syncAfterMerge, syncFieldsAfterMerge, unsetValue, valueAdded, valueChanged, valueRemovedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremove_p_getFieldCountprotected static final int LF_sources
protected static final int LF_topicmap
public static String CLASS_INDICATOR
public TMObject()
public TMObject(TransactionIF txn)
public abstract String getClassIndicator()
protected void transactionChanged(TopicMap topicmap)
protected long getLongId()
public abstract String getObjectId()
TMObjectIFgetObjectId in interface TMObjectIFpublic boolean isReadOnly()
TMObjectIFisReadOnly in interface TMObjectIFpublic TopicMapIF getTopicMap()
TMObjectIFgetTopicMap in interface TMObjectIFpublic Collection<LocatorIF> getItemIdentifiers()
TMObjectIFThe 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 TMObjectIFpublic void addItemIdentifier(LocatorIF source_locator) throws ConstraintViolationException
TMObjectIFaddItemIdentifier in interface TMObjectIFsource_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)
TMObjectIFremoveItemIdentifier in interface TMObjectIFsource_locator - The item identifier to be removed; an object implementing LocatorIF.