public class RelationshipType extends BaseOpenmrsMetadata implements Serializable
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 |
---|---|
boolean |
equals(Object obj)
Compares two RelationshipTypes for similarity
|
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() |
Integer |
getRelationshipTypeId() |
Integer |
getWeight() |
int |
hashCode() |
Boolean |
isPreferred()
"Preferred" relationship types are those that should be shown as default types when
adding/editing a person's relationships
|
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() |
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReason
getUuid, setUuid
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public static final long serialVersionUID
public RelationshipType()
public RelationshipType(Integer relationshipTypeId)
public boolean equals(Object obj)
equals
in class Object
obj
- RelationshipType to compare to this objectObject.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
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()
public Boolean isPreferred()
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()
toString
in class Object
Object.toString()
public Integer getId()
getId
in interface OpenmrsObject
OpenmrsObject.getId()
public void setId(Integer id)
setId
in interface OpenmrsObject
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.