public class RelationshipType extends BaseOpenmrsMetadata implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
RelationshipType()
default constructor
|
RelationshipType(java.lang.Integer relationshipTypeId)
constructor with id
|
Modifier and Type | Method and Description |
---|---|
java.lang.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.
|
java.lang.String |
getbIsToA() |
java.lang.Integer |
getId() |
java.lang.Integer |
getRelationshipTypeId() |
java.lang.Integer |
getWeight() |
java.lang.Boolean |
isPreferred()
"Preferred" relationship types are those that should be shown as default types when
adding/editing a person's relationships
|
void |
setaIsToB(java.lang.String aisToB) |
void |
setbIsToA(java.lang.String bisToA) |
void |
setId(java.lang.Integer id) |
void |
setPreferred(java.lang.Boolean preferred)
"Preferred" relationship types are those that should be shown as default types when
adding/editing a person's relationships
|
void |
setRelationshipTypeId(java.lang.Integer relationshipTypeId) |
void |
setWeight(java.lang.Integer weight) |
java.lang.String |
toString()
Returns a string consisting of the name of the class of which the object is an instance and
the
uuid field surrounded by [ and ] . |
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(java.lang.Integer relationshipTypeId)
public java.lang.Integer getRelationshipTypeId()
public void setRelationshipTypeId(java.lang.Integer relationshipTypeId)
relationshipTypeId
- The relationshipTypeId to set.public java.lang.Integer getWeight()
public void setWeight(java.lang.Integer weight)
weight
- the weight to setpublic java.lang.String getaIsToB()
public void setaIsToB(java.lang.String aisToB)
aisToB
- the aIsToB to setpublic java.lang.String getbIsToA()
public java.lang.Boolean isPreferred()
public void setPreferred(java.lang.Boolean preferred)
preferred
- sets the preferred status of this relationship typepublic void setbIsToA(java.lang.String bisToA)
bisToA
- the bIsToA to setpublic java.lang.String toString()
BaseOpenmrsObject
uuid
field surrounded by [
and ]
. In other words,
this method returns a string equal to the value of: getClass().getName() + '[' + uuid + ']'
If the uuid
field is null
, it delegates to
Object.toString()
toString
in class BaseOpenmrsObject
Object.toString()
public java.lang.Integer getId()
getId
in interface OpenmrsObject
OpenmrsObject.getId()
public void setId(java.lang.Integer id)
setId
in interface OpenmrsObject
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.