public class OdiParentRef extends AbstractRepositoryEntity implements IParentRef
Modifier and Type | Class and Description |
---|---|
static class |
OdiParentRef.SCD2ParentRefType |
Constructor and Description |
---|
OdiParentRef(OdiLevel owningLevel,
java.lang.String parentRefName)
OdiParentRef constructor.
|
OdiParentRef(OdiLevel owningLevel,
java.lang.String parentRefName,
OdiLevel refParentLevel)
OdiParentRef constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addRefMember(OdiRefMember member)
Add a reference member to this parent reference.
|
OdiRefMember |
findRefMember(INaturalKeyMember natKeyMem)
Find a reference member with the specified natural key member.
|
java.lang.String |
getDescription()
Get the text description for this parent reference.
|
java.io.Serializable |
getInternalId() |
OdiLevel |
getLevel()
Get the owning level for this parent reference.
|
java.lang.String |
getName()
Get the name of this parent reference.
|
java.lang.Number |
getParentRefId()
Get the unique id of this parent ref object.
|
OdiParentRef.SCD2ParentRefType |
getParentRefSCD2Type()
Get the parent reference SCD2 type.
|
OdiLevel |
getReferencedParentLevel()
Get the referenced parent level that is related to the owning level by this
parent reference object.
|
java.util.List |
getRefMembers()
Get the ordered list of reference members for this parent reference.
|
IRepositoryEntity |
getSecurityContainer() |
void |
removeRefMember(OdiRefMember member)
Remove a ref member from this parent ref.
|
void |
setDescription(java.lang.String desc)
Set a long text description of this parent reference.
|
void |
setName(java.lang.String name)
Set the name of this parent reference.
|
void |
setParentRefSCD2Type(OdiParentRef.SCD2ParentRefType type) |
void |
setReferencedParentLevel(OdiLevel lev)
Set the referenced parent level that is related to the owning level by this
parent reference object.
|
java.lang.String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBigNumericId, getGlobalId, getNumericId
public OdiParentRef(OdiLevel owningLevel, java.lang.String parentRefName, OdiLevel refParentLevel)
owningLevel
- The owning level for this parent reference object. Cannot be set to null.parentRefName
- The name for this parent reference object.refParentLevel
- The parent level for this parent reference object.public OdiParentRef(OdiLevel owningLevel, java.lang.String parentRefName)
owningLevel
- The owning level for this parent reference object. Cannot be set to null.parentRefName
- The name for this parent reference object.public java.lang.String getName()
IParentRef
getName
in interface IParentRef
getName
in interface IModelObject
public void setName(java.lang.String name)
IParentRef
setName
in interface IParentRef
name
- The name to set.public void setDescription(java.lang.String desc)
IParentRef
setDescription
in interface IParentRef
desc
- The description to set.public java.lang.String getDescription()
IParentRef
getDescription
in interface IParentRef
public java.io.Serializable getInternalId()
public java.lang.Number getParentRefId()
public IRepositoryEntity getSecurityContainer()
public void addRefMember(OdiRefMember member)
member
- The reference member to add.public void removeRefMember(OdiRefMember member)
member
- public java.util.List getRefMembers()
IParentRef
getRefMembers
in interface IParentRef
public OdiRefMember findRefMember(INaturalKeyMember natKeyMem)
IParentRef
findRefMember
in interface IParentRef
natKeyMem
- the natural key member to matchpublic OdiLevel getLevel()
IParentRef
getLevel
in interface IParentRef
public OdiLevel getReferencedParentLevel()
getReferencedParentLevel
in interface IParentRef
public void setReferencedParentLevel(OdiLevel lev)
setReferencedParentLevel
in interface IParentRef
public java.lang.String toString()
public OdiParentRef.SCD2ParentRefType getParentRefSCD2Type()
IParentRef
getParentRefSCD2Type
in interface IParentRef
public void setParentRefSCD2Type(OdiParentRef.SCD2ParentRefType type)