org.openmrs.hl7
Class HL7InQueue

java.lang.Object
  extended by org.openmrs.BaseOpenmrsObject
      extended by org.openmrs.hl7.HL7InQueue
All Implemented Interfaces:
java.io.Serializable, OpenmrsObject

public class HL7InQueue
extends BaseOpenmrsObject
implements java.io.Serializable

Represents an hl7 message that has yet to be processed.

See Also:
HL7Service, Serialized Form

Constructor Summary
HL7InQueue()
          Default constructor
HL7InQueue(HL7InArchive hl7InArchive)
          Convenience constructor to build queue from a previously deleted queue entry
HL7InQueue(HL7InError hl7InError)
          Convenience constructor to build queue from a previously erred queue entry
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.Date getDateCreated()
           
 java.lang.String getErrorMessage()
           
 java.lang.String getHL7Data()
           
 java.lang.Integer getHL7InQueueId()
           
 HL7Source getHL7Source()
           
 java.lang.String getHL7SourceKey()
           
 java.lang.Integer getId()
           
 java.lang.Integer getMessageState()
          Can be one of the states in the HL7Constants file.
 int hashCode()
           
 void setDateCreated(java.util.Date dateCreated)
           
 void setErrorMessage(java.lang.String errorMessage)
           
 void setHL7Data(java.lang.String hl7Data)
           
 void setHL7InQueueId(java.lang.Integer hl7InQueueId)
           
 void setHL7Source(HL7Source hl7Source)
           
 void setHL7SourceKey(java.lang.String hl7SourceKey)
           
 void setId(java.lang.Integer id)
           
 void setMessageState(java.lang.Integer messageState)
           
 
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
 

Constructor Detail

HL7InQueue

public HL7InQueue()
Default constructor


HL7InQueue

public HL7InQueue(HL7InArchive hl7InArchive)
Convenience constructor to build queue from a previously deleted queue entry

Parameters:
hl7InArchive - deleted entry from which queue entry will be constructed
Since:
1.5

HL7InQueue

public HL7InQueue(HL7InError hl7InError)
Convenience constructor to build queue from a previously erred queue entry

Parameters:
hl7InError - erred entry from which queue entry will be constructed
Method Detail

equals

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

hashCode

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

getDateCreated

public java.util.Date getDateCreated()
Returns:
Returns the dateCreated.

setDateCreated

public void setDateCreated(java.util.Date dateCreated)
Parameters:
dateCreated - The dateCreated to set.

getHL7Data

public java.lang.String getHL7Data()
Returns:
Returns the hl7Data.

setHL7Data

public void setHL7Data(java.lang.String hl7Data)
Parameters:
hl7Data - The hl7Data to set.

getHL7InQueueId

public java.lang.Integer getHL7InQueueId()
Returns:
Returns the hl7InQueueId.

setHL7InQueueId

public void setHL7InQueueId(java.lang.Integer hl7InQueueId)
Parameters:
hl7InQueueId - The hl7InQueueId to set.

getHL7Source

public HL7Source getHL7Source()
Returns:
Returns the hl7Source.

setHL7Source

public void setHL7Source(HL7Source hl7Source)
Parameters:
hl7Source - The hl7Source to set.

getHL7SourceKey

public java.lang.String getHL7SourceKey()
Returns:
Returns the hl7SourceKey.

setHL7SourceKey

public void setHL7SourceKey(java.lang.String hl7SourceKey)
Parameters:
hl7SourceKey - The hl7SourceKey to set.

getErrorMessage

public java.lang.String getErrorMessage()
Returns:
Returns the errorMessage.
Since:
1.5

setErrorMessage

public void setErrorMessage(java.lang.String errorMessage)
Parameters:
errorMessage - The errorMessage to set.
Since:
1.5

getMessageState

public java.lang.Integer getMessageState()
Can be one of the states in the HL7Constants file.

Returns:
Returns the message State.
See Also:
HL7Constants.HL7_STATUS_PENDING, HL7Constants.HL7_STATUS_ERROR, HL7Constants.HL7_STATUS_PROCESSED, HL7Constants.HL7_STATUS_PROCESSING, HL7Constants.HL7_STATUS_DELETED

setMessageState

public void setMessageState(java.lang.Integer messageState)
Parameters:
messageState - The message State 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