Class QALog

  • All Implemented Interfaces:
    java.lang.Comparable<java.lang.Object>

    public class QALog
    extends HibernateObject
    implements java.lang.Comparable<java.lang.Object>
    This class represents the log of a QA event. When a question is answered, a log is created to record the response along with other data
    Author:
    SGSystems
    • Field Detail

      • question

        public java.lang.String question
        The question that was asked
      • answer

        public java.lang.String answer
        The answer that was given
      • user

        public User user
        The user who answered the question
      • timestamp

        public java.util.Date timestamp
        The time when the question was answered
      • commodity

        public Commodity commodity
        The commodity, if any, that prompted this question
      • qaEventType

        public int qaEventType
        The QALink.QAEventType which caused the question to be asked
      • linkedStock

        public StockLocation linkedStock
        The stock associated with this event
      • linkedId

        public java.lang.Integer linkedId
        A link to multiple tables dependent on QALink.QAEventType
      • questionGroup

        public java.lang.String questionGroup
        The question group the question belonged to
      • qaLink

        public QALink qaLink
        The QALink event which was triggered
      • sampleNo

        public java.lang.Integer sampleNo
        A numerical sequence of how many times this question was asked in Lab Testing
      • approval

        public java.lang.Integer approval
        Boolean stating that approval was provided
      • questionObj

        public Question questionObj
        The fully formed question object
      • approvalOperator

        public User approvalOperator
        The operator who approved the response
      • hideFromCOA

        public int hideFromCOA
        Marks whether response should be hidden from COA
      • terminal

        public Terminal terminal
        The terminal on which this QA event took place
      • notes

        public java.lang.String notes
        Additional notes to go with the answer
      • severity

        public int severity
    • Constructor Detail

      • QALog

        public QALog()
    • Method Detail

      • getQuestion

        public java.lang.String getQuestion()
      • getAnswer

        public java.lang.String getAnswer()
      • getUser

        public User getUser()
      • getTimestamp

        public java.util.Date getTimestamp()
      • getCommodity

        public Commodity getCommodity()
      • getQaEventType

        public int getQaEventType()
      • setQuestion

        public void setQuestion​(java.lang.String question)
      • setAnswer

        public void setAnswer​(java.lang.String answer)
      • setUser

        public void setUser​(User user)
      • setTimestamp

        public void setTimestamp​(java.util.Date timestamp)
      • setCommodity

        public void setCommodity​(Commodity commodity)
      • setQaEventType

        public void setQaEventType​(int qaEventType)
      • setLinkedStock

        public void setLinkedStock​(StockLocation linkedStock)
      • compareTo

        public int compareTo​(java.lang.Object o)
        Specified by:
        compareTo in interface java.lang.Comparable<java.lang.Object>
      • getQaEventTypeStr

        public java.lang.String getQaEventTypeStr()
      • getLinkedId

        public java.lang.Integer getLinkedId()
      • setLinkedId

        public void setLinkedId​(java.lang.Integer linkedId)
      • getQuestionGroup

        public java.lang.String getQuestionGroup()
      • setQuestionGroup

        public void setQuestionGroup​(java.lang.String questionGroup)
      • getQaLink

        public QALink getQaLink()
      • getSampleNo

        public java.lang.Integer getSampleNo()
      • setQaLink

        public void setQaLink​(QALink qaLink)
      • setSampleNo

        public void setSampleNo​(java.lang.Integer sampleNo)
      • getApproval

        public java.lang.Integer getApproval()
      • setApproval

        public void setApproval​(java.lang.Integer approval)
      • getQuestionObj

        public Question getQuestionObj()
      • setQuestionObj

        public void setQuestionObj​(Question questionObj)
      • getApprovalOperator

        public User getApprovalOperator()
      • setApprovalOperator

        public void setApprovalOperator​(User approvalOperator)
      • getHideFromCOA

        public int getHideFromCOA()
      • setHideFromCOA

        public void setHideFromCOA​(int hideFromCOA)
      • getTerminal

        public Terminal getTerminal()
      • setTerminal

        public void setTerminal​(Terminal terminal)
      • getNotes

        public java.lang.String getNotes()
      • setNotes

        public void setNotes​(java.lang.String notes)
      • getSeverity

        public int getSeverity()
      • setSeverity

        public void setSeverity​(int severity)