public class HibernateOrderDAO extends java.lang.Object implements OrderDAO
OrderService
,
OrderDAO
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
HibernateOrderDAO() |
Modifier and Type | Method and Description |
---|---|
void |
deleteObsThatReference(Order order)
Delete Obs that references (deleted) Order
|
void |
deleteOrder(Order order) |
void |
deleteOrderType(OrderType orderType) |
java.util.List<OrderType> |
getAllOrderTypes(boolean includeRetired) |
<Ord extends Order> |
getOrder(java.lang.Integer orderId,
java.lang.Class<Ord> orderClassType) |
Order |
getOrderByUuid(java.lang.String uuid)
Auto generated method comment
|
<Ord extends Order> |
getOrders(java.lang.Class<Ord> orderClassType,
java.util.List<Patient> patients,
java.util.List<Concept> concepts,
OrderService.ORDER_STATUS status,
java.util.List<User> orderers,
java.util.List<Encounter> encounters,
java.util.List<OrderType> orderTypes) |
OrderType |
getOrderType(java.lang.Integer orderTypeId) |
OrderType |
getOrderTypeByUuid(java.lang.String uuid)
Auto generated method comment
|
Order |
saveOrder(Order order) |
OrderType |
saveOrderType(OrderType orderType) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Set session factory
|
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory
- public OrderType saveOrderType(OrderType orderType) throws DAOException
saveOrderType
in interface OrderDAO
DAOException
OrderDAO.saveOrderType(org.openmrs.OrderType)
,
OrderService.saveOrderType(org.openmrs.OrderType)
public OrderType getOrderType(java.lang.Integer orderTypeId) throws DAOException
getOrderType
in interface OrderDAO
DAOException
OrderDAO.getOrderType(java.lang.Integer)
,
OrderService.getOrderType(java.lang.Integer)
public java.util.List<OrderType> getAllOrderTypes(boolean includeRetired) throws DAOException
getAllOrderTypes
in interface OrderDAO
DAOException
OrderService.getOrderTypes()
public void deleteOrderType(OrderType orderType) throws DAOException
deleteOrderType
in interface OrderDAO
DAOException
OrderDAO.deleteOrderType(org.openmrs.OrderType)
,
OrderService.purgeOrderType(org.openmrs.OrderType)
public Order saveOrder(Order order) throws DAOException
saveOrder
in interface OrderDAO
DAOException
OrderDAO.saveOrder(org.openmrs.Order)
,
OrderService.saveOrder(org.openmrs.Order)
public void deleteOrder(Order order) throws DAOException
deleteOrder
in interface OrderDAO
DAOException
OrderDAO.deleteOrder(org.openmrs.Order)
,
OrderService.purgeOrder(org.openmrs.Order)
public <Ord extends Order> Ord getOrder(java.lang.Integer orderId, java.lang.Class<Ord> orderClassType) throws DAOException
getOrder
in interface OrderDAO
DAOException
OrderService.getOrder(java.lang.Integer)
public <Ord extends Order> java.util.List<Ord> getOrders(java.lang.Class<Ord> orderClassType, java.util.List<Patient> patients, java.util.List<Concept> concepts, OrderService.ORDER_STATUS status, java.util.List<User> orderers, java.util.List<Encounter> encounters, java.util.List<OrderType> orderTypes)
getOrders
in interface OrderDAO
OrderDAO.getOrders(java.lang.Class, java.util.List, java.util.List,
org.openmrs.api.OrderService.ORDER_STATUS, java.util.List, java.util.List,
java.util.List)
,
OrderService.getOrders(java.lang.Class, java.util.List, java.util.List,
org.openmrs.api.OrderService.ORDER_STATUS, java.util.List, java.util.List,
java.util.List)
public Order getOrderByUuid(java.lang.String uuid)
OrderDAO
getOrderByUuid
in interface OrderDAO
OrderDAO.getOrderByUuid(java.lang.String)
public OrderType getOrderTypeByUuid(java.lang.String uuid)
OrderDAO
getOrderTypeByUuid
in interface OrderDAO
OrderDAO.getOrderTypeByUuid(java.lang.String)
public void deleteObsThatReference(Order order)
deleteObsThatReference
in interface OrderDAO
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.