@MappedSuperclass public abstract class BaseOpenmrsObject extends java.lang.Object implements java.io.Serializable, OpenmrsObject
OpenmrsObject
interface.Constructor and Description |
---|
BaseOpenmrsObject() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns
true if and only if x and y refer to the same
object (x == y has the value true ) or both have the same
uuid (((x.uuid != null) && x.uuid.equals(y.uuid)) has the value
true ). |
java.lang.String |
getUuid() |
int |
hashCode()
Returns a hash code based on the
uuid field. |
void |
setUuid(java.lang.String uuid) |
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 ] . |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, setId
public java.lang.String getUuid()
getUuid
in interface OpenmrsObject
OpenmrsObject.getUuid()
public void setUuid(java.lang.String uuid)
setUuid
in interface OpenmrsObject
uuid
- a universally unique id for this objectOpenmrsObject.setUuid(java.lang.String)
public int hashCode()
uuid
field.
If the uuid
field is null
, it delegates to
Object.hashCode()
.
hashCode
in class java.lang.Object
Object.hashCode()
public boolean equals(java.lang.Object obj)
true
if and only if x
and y
refer to the same
object (x == y
has the value true
) or both have the same
uuid
(((x.uuid != null) && x.uuid.equals(y.uuid))
has the value
true
).equals
in class java.lang.Object
Object.equals(java.lang.Object)
public java.lang.String toString()
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 java.lang.Object
Object.toString()
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.