@Entity public class PersonAttributeType extends BaseChangeableOpenmrsMetadata implements Serializable, Comparable<PersonAttributeType>
Modifier and Type | Class and Description |
---|---|
static class |
PersonAttributeType.DefaultComparator
Provides a default comparator.
|
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
PersonAttributeType()
default constructor
|
PersonAttributeType(Integer myPersonAttributeTypeId)
constructor with id
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PersonAttributeType other)
Deprecated.
since 1.12. Use DefaultComparator instead.
Note: this comparator imposes orderings that are inconsistent with equals.
|
Privilege |
getEditPrivilege()
The privilege required in order to edit this attribute
|
Integer |
getForeignKey() |
String |
getFormat() |
Integer |
getId() |
Integer |
getPersonAttributeTypeId() |
Boolean |
getSearchable() |
Double |
getSortWeight() |
Boolean |
isSearchable()
Deprecated.
as of 2.0, use
getSearchable() |
void |
setEditPrivilege(Privilege editPrivilege)
The privilege required in order to edit this attribute If
editPrivilege is null,
no extra permissions are required to edit this type |
void |
setForeignKey(Integer foreignKey) |
void |
setFormat(String format) |
void |
setId(Integer id) |
void |
setPersonAttributeTypeId(Integer newPersonAttributeTypeId) |
void |
setSearchable(Boolean searchable) |
void |
setSortWeight(Double sortWeight) |
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 PersonAttributeType()
public PersonAttributeType(Integer myPersonAttributeTypeId)
public String getFormat()
public void setFormat(String format)
format
- The format to set.public Integer getForeignKey()
public void setForeignKey(Integer foreignKey)
foreignKey
- the foreignKey to setpublic Double getSortWeight()
public void setSortWeight(Double sortWeight)
sortWeight
- the formOrder to setpublic Integer getPersonAttributeTypeId()
public void setPersonAttributeTypeId(Integer newPersonAttributeTypeId)
newPersonAttributeTypeId
- The PersonAttributeTypeId to set.@Deprecated public Boolean isSearchable()
getSearchable()
public Boolean getSearchable()
public void setSearchable(Boolean searchable)
searchable
- the searchable 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 Privilege getEditPrivilege()
public void setEditPrivilege(Privilege editPrivilege)
editPrivilege
is null,
no extra permissions are required to edit this typeeditPrivilege
- 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)
public int compareTo(PersonAttributeType other)
compareTo
in interface Comparable<PersonAttributeType>
Copyright © 2024 OpenMRS Inc.. All rights reserved.