Package com.sgs.common.database
Class QALog
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.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 Summary
Fields Modifier and Type Field Description java.lang.StringanswerThe answer that was givenjava.lang.IntegerapprovalBoolean stating that approval was providedUserapprovalOperatorThe operator who approved the responseCommoditycommodityThe commodity, if any, that prompted this questioninthideFromCOAMarks whether response should be hidden from COAjava.lang.IntegerlinkedIdA link to multiple tables dependent onQALink.QAEventTypeStockLocationlinkedStockThe stock associated with this eventjava.lang.StringnotesAdditional notes to go with the answerintqaEventTypeTheQALink.QAEventTypewhich caused the question to be askedQALinkqaLinkThe QALink event which was triggeredjava.lang.StringquestionThe question that was askedjava.lang.StringquestionGroupThe question group the question belonged toQuestionquestionObjThe fully formed question objectjava.lang.IntegersampleNoA numerical sequence of how many times this question was asked in Lab TestingintseverityTerminalterminalThe terminal on which this QA event took placejava.util.DatetimestampThe time when the question was answeredUseruserThe user who answered the question-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description QALog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(java.lang.Object o)java.lang.StringgetAnswer()java.lang.IntegergetApproval()UsergetApprovalOperator()CommoditygetCommodity()intgetHideFromCOA()java.lang.IntegergetLinkedId()StockLocationgetLinkedStock()java.lang.StringgetNotes()intgetQaEventType()java.lang.StringgetQaEventTypeStr()QALinkgetQaLink()java.lang.StringgetQuestion()java.lang.StringgetQuestionGroup()QuestiongetQuestionObj()java.lang.IntegergetSampleNo()intgetSeverity()TerminalgetTerminal()java.util.DategetTimestamp()UsergetUser()voidsetAnswer(java.lang.String answer)voidsetApproval(java.lang.Integer approval)voidsetApprovalOperator(User approvalOperator)voidsetCommodity(Commodity commodity)voidsetHideFromCOA(int hideFromCOA)voidsetLinkedId(java.lang.Integer linkedId)voidsetLinkedStock(StockLocation linkedStock)voidsetNotes(java.lang.String notes)voidsetQaEventType(int qaEventType)voidsetQaLink(QALink qaLink)voidsetQuestion(java.lang.String question)voidsetQuestionGroup(java.lang.String questionGroup)voidsetQuestionObj(Question questionObj)voidsetSampleNo(java.lang.Integer sampleNo)voidsetSeverity(int severity)voidsetTerminal(Terminal terminal)voidsetTimestamp(java.util.Date timestamp)voidsetUser(User user)-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
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
TheQALink.QAEventTypewhich 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 onQALink.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
-
-
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)
-
getLinkedStock
public StockLocation getLinkedStock()
-
setLinkedStock
public void setLinkedStock(StockLocation linkedStock)
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareToin interfacejava.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)
-
-