org.openmrs
Class OrderType

java.lang.Object
  extended by org.openmrs.BaseOpenmrsObject
      extended by org.openmrs.BaseOpenmrsMetadata
          extended by org.openmrs.OrderType
All Implemented Interfaces:
java.io.Serializable, Auditable, OpenmrsMetadata, OpenmrsObject, Retireable

public class OrderType
extends BaseOpenmrsMetadata
implements java.io.Serializable

OrderType

See Also:
Order, Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
OrderType()
          default constructor
OrderType(java.lang.Integer orderTypeId)
          constructor with id
OrderType(java.lang.String name, java.lang.String description)
          Convenience constructor that takes in the elements required to save this OrderType to the database
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Integer getId()
           
 java.lang.Integer getOrderTypeId()
           
 int hashCode()
           
 void setId(java.lang.Integer id)
           
 void setOrderTypeId(java.lang.Integer orderTypeId)
           
 
Methods inherited from class org.openmrs.BaseOpenmrsMetadata
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReason
 
Methods inherited from class org.openmrs.BaseOpenmrsObject
getUuid, setUuid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openmrs.OpenmrsObject
getUuid, setUuid
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

OrderType

public OrderType()
default constructor


OrderType

public OrderType(java.lang.Integer orderTypeId)
constructor with id


OrderType

public OrderType(java.lang.String name,
                 java.lang.String description)
Convenience constructor that takes in the elements required to save this OrderType to the database

Parameters:
name - The name of this order Type
description - A short description about this order type
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

getOrderTypeId

public java.lang.Integer getOrderTypeId()
Returns:
Returns the orderTypeId.

setOrderTypeId

public void setOrderTypeId(java.lang.Integer orderTypeId)
Parameters:
orderTypeId - The orderTypeId to set.

getId

public java.lang.Integer getId()
Specified by:
getId in interface OpenmrsObject
Returns:
id - The unique Identifier for the object
Since:
1.5
See Also:
OpenmrsObject.getId()

setId

public void setId(java.lang.Integer id)
Specified by:
setId in interface OpenmrsObject
Parameters:
id - - The unique Identifier for the object
Since:
1.5
See Also:
OpenmrsObject.setId(java.lang.Integer)

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change