@MappedSuperclass public abstract class AbstractReference extends DomainObject implements IHierarchialReference<String>, Displayable
getRelated()
relationsROOT
Constructor and Description |
---|
AbstractReference() |
AbstractReference(AbstractReference t) |
AbstractReference(String nameOrJson) |
AbstractReference(String name,
String meta) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDisplayName() |
String |
getHierarchy()
A String like: "rootId-nodeId-subnodeId-thisId"; gives the entire picture of
the hierarchy to this point.
|
String |
getId() |
String |
getMeta() |
String |
getName()
The unique name to identify the reference
|
abstract AbstractReference |
getParent()
if this Reference has any parent (main) association.
Example: A.R Rahman is a "Music Director". |
abstract List<AbstractReference> |
getRelated()
Any references this object has in
ReferenceAlias .However will not be persisted; for that use ReferenceAlias explicitly.NOTE: This is a Transient field currently, and one must explicitly populate it. |
int |
hashCode() |
void |
setHierarchy(String hierarchy)
A String like: "rootId-nodeId-subnodeId-thisId"; gives the entire picture of
the hierarchy to this point.
|
void |
setId(String name) |
void |
setMeta(String meta) |
void |
setName(String name)
The unique name to identify the reference
|
abstract void |
setParent(AbstractReference parent)
if this Reference has any parent (main) association.
Example: A.R Rahman is a "Music Director". |
abstract void |
setRelated(List<AbstractReference> related)
Any references this object has in
ReferenceAlias .However will not be persisted; for that use ReferenceAlias explicitly |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getParentId, setParentId
public AbstractReference()
public AbstractReference(String nameOrJson)
nameOrJson
- as String. JSON or name
.public AbstractReference(AbstractReference t)
public String getName()
getName
in interface IHierarchialReference<String>
public void setName(String name)
setName
in interface IHierarchialReference<String>
public String getId()
getId
in interface IHierarchialReference<String>
public void setId(String name)
setId
in interface IHierarchialReference<String>
public String getMeta()
public void setMeta(String meta)
public abstract AbstractReference getParent()
#parent
is null).public abstract void setParent(AbstractReference parent)
#parent
is null).public abstract List<AbstractReference> getRelated()
ReferenceAlias
.ReferenceAlias
explicitly.Transient
field currently, and one must explicitly populate it. TODO: Lazy load from ReferenceAlias
public abstract void setRelated(List<AbstractReference> related)
ReferenceAlias
.ReferenceAlias
explicitlypublic String getDisplayName()
getDisplayName
in interface Displayable
public String getHierarchy()
IHierarchialReference
getHierarchy
in interface IHierarchialReference<String>
public void setHierarchy(String hierarchy)
IHierarchialReference
setHierarchy
in interface IHierarchialReference<String>
Copyright © 2018. All rights reserved.