org.openmrs.hl7.db
Interface HL7DAO

All Known Implementing Classes:
HibernateHL7DAO

public interface HL7DAO

OpenMRS HL7 database related methods This class shouldn't be instantiated by itself. Use the Context

See Also:
HL7Service

Method Summary
 java.lang.Integer 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)
           
 HL7InQueue getHL7InQueue(java.lang.Integer hl7InQueueId)
           
 java.util.List<HL7InQueue> getHL7InQueueByState(java.lang.Integer stateId)
           
 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)
           
 

Method Detail

saveHL7Source

HL7Source saveHL7Source(HL7Source hl7Source)
                        throws DAOException
Throws:
DAOException
See Also:
HL7Service.saveHL7Source(org.openmrs.hl7.HL7Source)

getHL7Source

HL7Source getHL7Source(java.lang.Integer hl7SourceId)
                       throws DAOException
Throws:
DAOException
See Also:
HL7Service.getHL7Source(Integer)

getHL7SourceByName

HL7Source getHL7SourceByName(java.lang.String name)
                             throws DAOException
Throws:
DAOException
See Also:
HL7Service.getHL7SourceByName(String)

getAllHL7Sources

java.util.List<HL7Source> getAllHL7Sources()
                                           throws DAOException
Throws:
DAOException
See Also:
HL7Service.getAllHL7Sources()

deleteHL7Source

void deleteHL7Source(HL7Source hl7Source)
                     throws DAOException
Throws:
DAOException
See Also:
HL7Service.deleteHL7Source(org.openmrs.hl7.HL7Source)

saveHL7InQueue

HL7InQueue saveHL7InQueue(HL7InQueue hl7InQueue)
                          throws DAOException
Throws:
DAOException
See Also:
HL7Service.saveHL7InQueue(org.openmrs.hl7.HL7InQueue)

getHL7InQueue

HL7InQueue getHL7InQueue(java.lang.Integer hl7InQueueId)
                         throws DAOException
Throws:
DAOException
See Also:
HL7Service.getHL7InQueue(Integer)

getAllHL7InQueues

java.util.List<HL7InQueue> getAllHL7InQueues()
                                             throws DAOException
Throws:
DAOException
See Also:
HL7Service.getAllHL7InQueues()

getNextHL7InQueue

HL7InQueue getNextHL7InQueue()
                             throws DAOException
Throws:
DAOException
See Also:
HL7Service.getNextHL7InQueue()

deleteHL7InQueue

void deleteHL7InQueue(HL7InQueue hl7InQueue)
                      throws DAOException
Throws:
DAOException
See Also:
HL7Service.deleteHL7InQueue(org.openmrs.hl7.HL7InQueue)

getHL7Batch

<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

Type Parameters:
T -
Parameters:
clazz -
start -
length -
query -
Returns:
list of hl7s

countHL7s

java.lang.Integer countHL7s(java.lang.Class clazz,
                            java.lang.Integer messageState,
                            java.lang.String query)
Returns the amount of HL7 items in the database

Parameters:
clazz -
messageState -
query -
Returns:
count of HL7 items

saveHL7InArchive

HL7InArchive saveHL7InArchive(HL7InArchive hl7InArchive)
                              throws DAOException
Throws:
DAOException
See Also:
HL7Service.saveHL7InArchive(org.openmrs.hl7.HL7InArchive)

getHL7InArchive

HL7InArchive getHL7InArchive(java.lang.Integer hl7InArchiveId)
                             throws DAOException
Throws:
DAOException
See Also:
HL7Service.getHL7InArchive(Integer)

getHL7InArchiveByUuid

HL7InArchive getHL7InArchiveByUuid(java.lang.String uuid)
                                   throws DAOException
Throws:
DAOException
See Also:
HL7Service.getHL7InArchiveByUuid(String)

getHL7InArchiveByState

java.util.List<HL7InArchive> getHL7InArchiveByState(java.lang.Integer state)
                                                    throws DAOException
Throws:
DAOException
See Also:
HL7Service.getHL7InArchiveByState(Integer state)

getHL7InQueueByState

java.util.List<HL7InQueue> getHL7InQueueByState(java.lang.Integer stateId)
                                                throws DAOException
Throws:
DAOException
See Also:
HL7Service.getHL7InQueueByState(Integer stateId)

getAllHL7InArchives

java.util.List<HL7InArchive> getAllHL7InArchives()
                                                 throws DAOException
Throws:
DAOException
See Also:
HL7Service.getAllHL7InArchives()

getAllHL7InArchives

java.util.List<HL7InArchive> getAllHL7InArchives(java.lang.Integer maxResults)
Returns hl7 in archives but with a limited resultset size to save memory

Parameters:
maxResults - the maximum number of rows to be returned from the database
Returns:
list of hl7 archives

deleteHL7InArchive

void deleteHL7InArchive(HL7InArchive hl7InArchive)
                        throws DAOException
Throws:
DAOException
See Also:
HL7Service.deleteHL7InArchive(org.openmrs.hl7.HL7InArchive)

getHL7InArchivesToMigrate

java.util.List<HL7InArchive> getHL7InArchivesToMigrate()
provides a list of archives to be migrated


saveHL7InError

HL7InError saveHL7InError(HL7InError hl7InError)
                          throws DAOException
Throws:
DAOException
See Also:
HL7Service.saveHL7InError(org.openmrs.hl7.HL7InError)

getHL7InError

HL7InError getHL7InError(java.lang.Integer hl7InErrorId)
                         throws DAOException
Throws:
DAOException
See Also:
HL7Service.getHL7InError(Integer)

getAllHL7InErrors

java.util.List<HL7InError> getAllHL7InErrors()
                                             throws DAOException
Throws:
DAOException
See Also:
HL7Service.getAllHL7InErrors()

deleteHL7InError

void deleteHL7InError(HL7InError hl7InError)
                      throws DAOException
Throws:
DAOException
See Also:
HL7Service.deleteHL7InError(org.openmrs.hl7.HL7InError)

garbageCollect

void garbageCollect()
See Also:
HL7Service.garbageCollect()

OpenMRS-1.7.x

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