|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openmrs.BaseOpenmrsObject
org.openmrs.BaseOpenmrsData
org.openmrs.Relationship
public class Relationship
Relationship
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Fields inherited from class org.openmrs.BaseOpenmrsData |
|---|
creator |
| Constructor Summary | |
|---|---|
Relationship()
default constructor |
|
Relationship(java.lang.Integer relationshipId)
constructor with id |
|
Relationship(Person personA,
Person personB,
RelationshipType type)
|
|
| Method Summary | |
|---|---|
Relationship |
copy()
Does a shallow copy of this Relationship. |
protected Relationship |
copyHelper(Relationship target)
The purpose of this method is to allow subclasses of Relationship to delegate a portion of their copy() method back to the superclass, in case the base class implementation changes. |
boolean |
equals(java.lang.Object obj)
Compares two objects for similarity |
java.lang.Integer |
getId()
|
Person |
getPersonA()
|
Person |
getPersonB()
|
java.lang.Integer |
getRelationshipId()
|
RelationshipType |
getRelationshipType()
|
java.lang.Boolean |
getVoided()
Deprecated. Use isVoided() |
int |
hashCode()
|
void |
setId(java.lang.Integer id)
|
void |
setPersonA(Person personA)
|
void |
setPersonB(Person personB)
|
void |
setRelationshipId(java.lang.Integer relationshipId)
|
void |
setRelationshipType(RelationshipType type)
|
java.lang.String |
toString()
|
| Methods inherited from class org.openmrs.BaseOpenmrsData |
|---|
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateVoided, getVoidedBy, getVoidReason, isVoided, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateVoided, setVoided, setVoidedBy, setVoidReason |
| Methods inherited from class org.openmrs.BaseOpenmrsObject |
|---|
getUuid, setUuid |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openmrs.OpenmrsObject |
|---|
getUuid, setUuid |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public Relationship()
public Relationship(java.lang.Integer relationshipId)
public Relationship(Person personA,
Person personB,
RelationshipType type)
| Method Detail |
|---|
public Relationship copy()
protected Relationship copyHelper(Relationship target)
target - a Relationship that will have the state of this copied into it
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj -
public int hashCode()
hashCode in class java.lang.Objectpublic Person getPersonA()
public void setPersonA(Person personA)
personA - The person to set.public RelationshipType getRelationshipType()
public void setRelationshipType(RelationshipType type)
type - The relationship type to set.public java.lang.Integer getRelationshipId()
public void setRelationshipId(java.lang.Integer relationshipId)
relationshipId - The relationshipId to set.public Person getPersonB()
public void setPersonB(Person personB)
personB - The relative to set.public java.lang.Boolean getVoided()
BaseOpenmrsDataBaseOpenmrsData.isVoided(). This is only needed for jstl syntax like
${person.voided} because the return type is a Boolean object instead of a boolean primitive
type.
getVoided in class BaseOpenmrsDataBaseOpenmrsData.isVoided()public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Integer getId()
getId in interface OpenmrsObjectOpenmrsObject.getId()public void setId(java.lang.Integer id)
setId in interface OpenmrsObjectid - - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
|
OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||