public class OrderType extends BaseOpenmrsMetadata implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DRUG_ORDER_TYPE_UUID |
static long |
serialVersionUID |
static java.lang.String |
TEST_ORDER_TYPE_UUID |
Constructor and Description |
---|
OrderType()
default constructor
|
OrderType(java.lang.Integer orderTypeId)
Constructor with ID
|
OrderType(java.lang.String name,
java.lang.String description,
java.lang.String javaClassName)
Convenience constructor that takes in the elements required to save this OrderType to the
database
|
Modifier and Type | Method and Description |
---|---|
void |
addConceptClass(ConceptClass conceptClass)
Convenience method that adds the specified concept class
|
java.util.Collection<ConceptClass> |
getConceptClasses() |
java.lang.Integer |
getId() |
java.lang.Class |
getJavaClass()
Convenience method that returns a
Class object for the associated
javaClassName |
java.lang.String |
getJavaClassName() |
java.lang.Integer |
getOrderTypeId() |
OrderType |
getParent() |
void |
setConceptClasses(java.util.Collection<ConceptClass> conceptClasses) |
void |
setId(java.lang.Integer id) |
void |
setJavaClassName(java.lang.String javaClassName) |
void |
setOrderTypeId(java.lang.Integer orderTypeId) |
void |
setParent(OrderType parent) |
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 static final java.lang.String DRUG_ORDER_TYPE_UUID
public static final java.lang.String TEST_ORDER_TYPE_UUID
public OrderType()
public OrderType(java.lang.Integer orderTypeId)
orderTypeId
- the ID of the OrderType
public OrderType(java.lang.String name, java.lang.String description, java.lang.String javaClassName)
name
- The name of this order Typedescription
- A short description about this order typejavaClassName
- The fully qualified java class namepublic java.lang.Integer getOrderTypeId()
public void setOrderTypeId(java.lang.Integer orderTypeId)
orderTypeId
- The orderTypeId to set.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)
public java.lang.String getJavaClassName()
public void setJavaClassName(java.lang.String javaClassName)
javaClassName
- The Java class to set as Stringpublic java.util.Collection<ConceptClass> getConceptClasses()
ConceptClass
espublic void setConceptClasses(java.util.Collection<ConceptClass> conceptClasses)
conceptClasses
- the collection containing the ConceptClass
espublic java.lang.Class getJavaClass() throws APIException
Class
object for the associated
javaClassNameClass
APIException
public void addConceptClass(ConceptClass conceptClass)
conceptClass
- the ConceptClass to addpublic 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
BaseOpenmrsObject.toString()
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.