public class RelationshipType extends BaseChangeableOpenmrsMetadata
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
RelationshipType()
default constructor
|
RelationshipType(Integer relationshipTypeId)
constructor with id
|
Modifier and Type | Method and Description |
---|---|
String |
getaIsToB()
The java bean specifications says that if an attribute has the second letter capitalized (as
the "I" is), the initial "a" is not to be capitalized.
|
String |
getbIsToA() |
Integer |
getId() |
Boolean |
getPreferred() |
Integer |
getRelationshipTypeId() |
Integer |
getWeight() |
Boolean |
isPreferred()
Deprecated.
as of 2.0, use
getPreferred() |
void |
setaIsToB(String aisToB) |
void |
setbIsToA(String bisToA) |
void |
setId(Integer id) |
void |
setPreferred(Boolean preferred)
"Preferred" relationship types are those that should be shown as default types when
adding/editing a person's relationships
|
void |
setRelationshipTypeId(Integer relationshipTypeId) |
void |
setWeight(Integer weight) |
String |
toString()
Returns a string equal to the value of: ClassName{hashCode=...,
uuid=...}
|
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReason
equals, getUuid, hashCode, setUuid
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public static final long serialVersionUID
public RelationshipType()
public RelationshipType(Integer relationshipTypeId)
public Integer getRelationshipTypeId()
public void setRelationshipTypeId(Integer relationshipTypeId)
relationshipTypeId
- The relationshipTypeId to set.public Integer getWeight()
public void setWeight(Integer weight)
weight
- the weight to setpublic String getaIsToB()
public void setaIsToB(String aisToB)
aisToB
- the aIsToB to setpublic String getbIsToA()
@Deprecated public Boolean isPreferred()
getPreferred()
public Boolean getPreferred()
public void setPreferred(Boolean preferred)
preferred
- sets the preferred status of this relationship typepublic void setbIsToA(String bisToA)
bisToA
- the bIsToA to setpublic String toString()
BaseOpenmrsObject
ClassName{hashCode=..., uuid=...}
If the uuid
field is null
, it returns:
ClassName{hashCode=...}Should include hashCode if uuid is null Should include uuid if not null
toString
in class BaseOpenmrsObject
Object.toString()
public Integer getId()
OpenmrsObject.getId()
public void setId(Integer id)
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
Copyright © 2024 OpenMRS Inc.. All rights reserved.