public abstract class DmcNamedObjectREF<DMO extends DmcNamedObjectIF> extends Object implements Serializable, DmcNamedObjectIF, DmcMappedAttributeIF
| Modifier and Type | Field and Description |
|---|---|
protected Modifier |
backrefModifier |
| Constructor and Description |
|---|
DmcNamedObjectREF()
Constructs a new named object reference.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
This method should check the type of the obj param and compare the name
of this object with the one passed as argument.
|
Modifier |
getBackrefModifier()
If back reference tracking was turned on when this reference was resolved, this
will return the handle to back reference modifier that was created on the
object being referred to.
|
Object |
getKey()
Returns the key associated with this attribute value.
|
String |
getKeyAsString()
Returns the key value represented as a string.
|
abstract DMO |
getObject() |
int |
hashCode() |
abstract boolean |
isResolved() |
void |
removeBackref()
If back reference tracking is enabled and we have an object and a backref, we remove
the back reference.
|
void |
setBackrefModifier(Modifier mod)
Sets the modifier that will remove this object reference if the object being
referred to is deleted.
|
abstract void |
setName(DmcObjectName n)
Sets the name of the object being referred to.
|
abstract void |
setObject(DMO o)
Sets the object, thus making this reference "resolved".
|
String |
toString()
Override toString() to provide the object name.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetObjectName, getObjectNameAttributevaluesAreEqualprotected transient Modifier backrefModifier
public DmcNamedObjectREF()
public void setBackrefModifier(Modifier mod)
mod - The back reference modifier.public Modifier getBackrefModifier()
public void removeBackref()
public abstract void setObject(DMO o)
o - the object.public abstract DMO getObject()
public abstract boolean isResolved()
public abstract void setName(DmcObjectName n) throws DmcValueException
n - The name of the object.DmcValueExceptionpublic String toString()
public boolean equals(Object obj)
DmcNamedObjectIFequals in interface DmcNamedObjectIFequals in class Objectobj - The comparison object.public Object getKey()
getKey in interface DmcMappedAttributeIFpublic String getKeyAsString()
getKeyAsString in interface DmcMappedAttributeIFCopyright © 2023. All rights reserved.