public class HibernateHL7DAO extends java.lang.Object implements HL7DAO
ContextHL7Service, 
HL7DAO| Modifier and Type | Field and Description | 
|---|---|
protected org.apache.commons.logging.Log | 
log  | 
| Constructor and Description | 
|---|
HibernateHL7DAO()  | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.Long | 
countHL7s(java.lang.Class clazz,
         java.lang.Integer messageState,
         java.lang.String query)
Returns the amount of HL7 items in the database 
 | 
void | 
deleteHL7InArchive(HL7InArchive hl7InArchive)  | 
void | 
deleteHL7InError(HL7InError hl7InError)  | 
void | 
deleteHL7InQueue(HL7InQueue hl7InQueue)  | 
void | 
deleteHL7Source(HL7Source hl7Source)  | 
void | 
garbageCollect()  | 
java.util.List<HL7InArchive> | 
getAllHL7InArchives()  | 
java.util.List<HL7InArchive> | 
getAllHL7InArchives(java.lang.Integer maxResults)
Returns hl7 in archives but with a limited resultset size to save memory 
 | 
java.util.List<HL7InError> | 
getAllHL7InErrors()  | 
java.util.List<HL7InQueue> | 
getAllHL7InQueues()  | 
java.util.List<HL7Source> | 
getAllHL7Sources()  | 
<T> java.util.List<T> | 
getHL7Batch(java.lang.Class clazz,
           int start,
           int length,
           java.lang.Integer messageState,
           java.lang.String query)
Returns hl7s based on batch settings and filtered by a query 
 | 
HL7InArchive | 
getHL7InArchive(java.lang.Integer hl7InArchiveId)  | 
java.util.List<HL7InArchive> | 
getHL7InArchiveByState(java.lang.Integer state)  | 
HL7InArchive | 
getHL7InArchiveByUuid(java.lang.String uuid)  | 
java.util.List<HL7InArchive> | 
getHL7InArchivesToMigrate()
provides a list of archives to be migrated 
 | 
HL7InError | 
getHL7InError(java.lang.Integer hl7InErrorId)  | 
HL7InError | 
getHL7InErrorByUuid(java.lang.String uuid)  | 
HL7InQueue | 
getHL7InQueue(java.lang.Integer hl7InQueueId)  | 
java.util.List<HL7InQueue> | 
getHL7InQueueByState(java.lang.Integer state)  | 
HL7InQueue | 
getHL7InQueueByUuid(java.lang.String uuid)  | 
HL7Source | 
getHL7Source(java.lang.Integer hl7SourceId)  | 
HL7Source | 
getHL7SourceByName(java.lang.String name)  | 
HL7InQueue | 
getNextHL7InQueue()  | 
HL7InArchive | 
saveHL7InArchive(HL7InArchive hl7InArchive)  | 
HL7InError | 
saveHL7InError(HL7InError hl7InError)  | 
HL7InQueue | 
saveHL7InQueue(HL7InQueue hl7InQueue)  | 
HL7Source | 
saveHL7Source(HL7Source hl7Source)  | 
void | 
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Set session factory 
 | 
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory - public HL7Source saveHL7Source(HL7Source hl7Source) throws DAOException
saveHL7Source in interface HL7DAODAOExceptionHL7DAO.saveHL7Source(org.openmrs.hl7.HL7Source)public HL7Source getHL7Source(java.lang.Integer hl7SourceId) throws DAOException
getHL7Source in interface HL7DAODAOExceptionHL7DAO.getHL7Source(java.lang.Integer)public HL7Source getHL7SourceByName(java.lang.String name) throws DAOException
getHL7SourceByName in interface HL7DAODAOExceptionHL7DAO.getHL7SourceByName(java.lang.String)public java.util.List<HL7Source> getAllHL7Sources() throws DAOException
getAllHL7Sources in interface HL7DAODAOExceptionHL7DAO.getAllHL7Sources()public void deleteHL7Source(HL7Source hl7Source) throws DAOException
deleteHL7Source in interface HL7DAODAOExceptionHL7DAO.deleteHL7Source(org.openmrs.hl7.HL7Source)public HL7InQueue saveHL7InQueue(HL7InQueue hl7InQueue) throws DAOException
saveHL7InQueue in interface HL7DAODAOExceptionHL7DAO.saveHL7InQueue(org.openmrs.hl7.HL7InQueue)public HL7InQueue getHL7InQueue(java.lang.Integer hl7InQueueId) throws DAOException
getHL7InQueue in interface HL7DAODAOExceptionHL7DAO.getHL7InQueue(java.lang.Integer)public HL7InQueue getHL7InQueueByUuid(java.lang.String uuid) throws DAOException
getHL7InQueueByUuid in interface HL7DAODAOExceptionHL7Service.getHL7InQueueByUuid(String)public java.util.List<HL7InQueue> getAllHL7InQueues() throws DAOException
getAllHL7InQueues in interface HL7DAODAOExceptionHL7DAO.getAllHL7InQueues()public <T> java.util.List<T> getHL7Batch(java.lang.Class clazz,
                                         int start,
                                         int length,
                                         java.lang.Integer messageState,
                                         java.lang.String query)
                                  throws DAOException
HL7DAOgetHL7Batch in interface HL7DAODAOExceptionorg.openmrs.hl7.db.HL7DAO#getHL7InQueueBatch(java.lang.Class, int, int,
      java.lang.Integer, java.lang.String)public java.lang.Long countHL7s(java.lang.Class clazz,
                                java.lang.Integer messageState,
                                java.lang.String query)
HL7DAOpublic HL7InQueue getNextHL7InQueue() throws DAOException
getNextHL7InQueue in interface HL7DAODAOExceptionHL7DAO.getNextHL7InQueue()public void deleteHL7InQueue(HL7InQueue hl7InQueue) throws DAOException
deleteHL7InQueue in interface HL7DAODAOExceptionHL7DAO.deleteHL7InQueue(org.openmrs.hl7.HL7InQueue)public HL7InArchive saveHL7InArchive(HL7InArchive hl7InArchive) throws DAOException
saveHL7InArchive in interface HL7DAODAOExceptionHL7DAO.saveHL7InArchive(org.openmrs.hl7.HL7InArchive)public HL7InArchive getHL7InArchive(java.lang.Integer hl7InArchiveId) throws DAOException
getHL7InArchive in interface HL7DAODAOExceptionHL7DAO.getHL7InArchive(java.lang.Integer)public java.util.List<HL7InArchive> getHL7InArchiveByState(java.lang.Integer state) throws DAOException
getHL7InArchiveByState in interface HL7DAODAOExceptionHL7DAO.getHL7InArchiveByState(Integer state)public java.util.List<HL7InQueue> getHL7InQueueByState(java.lang.Integer state) throws DAOException
getHL7InQueueByState in interface HL7DAODAOExceptionHL7DAO.getHL7InQueueByState(Integer stateId)public java.util.List<HL7InArchive> getAllHL7InArchives() throws DAOException
getAllHL7InArchives in interface HL7DAODAOExceptionHL7DAO.getAllHL7InArchives()public java.util.List<HL7InArchive> getAllHL7InArchives(java.lang.Integer maxResults)
HL7DAOgetAllHL7InArchives in interface HL7DAOmaxResults - the maximum number of rows to be returned from the databaseHL7DAO.getAllHL7InArchives(Integer)public void deleteHL7InArchive(HL7InArchive hl7InArchive) throws DAOException
deleteHL7InArchive in interface HL7DAODAOExceptionHL7DAO.deleteHL7InArchive(org.openmrs.hl7.HL7InArchive)public HL7InError saveHL7InError(HL7InError hl7InError) throws DAOException
saveHL7InError in interface HL7DAODAOExceptionHL7DAO.saveHL7InError(HL7InError)public HL7InError getHL7InError(java.lang.Integer hl7InErrorId) throws DAOException
getHL7InError in interface HL7DAODAOExceptionHL7DAO.getHL7InError(Integer)public HL7InError getHL7InErrorByUuid(java.lang.String uuid) throws DAOException
getHL7InErrorByUuid in interface HL7DAODAOExceptionHL7Service.getHL7InErrorByUuid(String)public java.util.List<HL7InError> getAllHL7InErrors() throws DAOException
getAllHL7InErrors in interface HL7DAODAOExceptionHL7DAO.getAllHL7InErrors()public void deleteHL7InError(HL7InError hl7InError) throws DAOException
deleteHL7InError in interface HL7DAODAOExceptionHL7DAO.deleteHL7InError(HL7InError)public void garbageCollect()
garbageCollect in interface HL7DAOHL7DAO.garbageCollect()public HL7InArchive getHL7InArchiveByUuid(java.lang.String uuid) throws DAOException
getHL7InArchiveByUuid in interface HL7DAODAOExceptionHL7DAO.getHL7InArchiveByUuid(java.lang.String)public java.util.List<HL7InArchive> getHL7InArchivesToMigrate()
HL7DAOgetHL7InArchivesToMigrate in interface HL7DAOHL7DAO.getHL7InArchivesToMigrate()Copyright © 2018 OpenMRS Inc.. All Rights Reserved.