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.String
answer
The answer that was givenjava.lang.Integer
approval
Boolean stating that approval was providedUser
approvalOperator
The operator who approved the responseCommodity
commodity
The commodity, if any, that prompted this questionint
hideFromCOA
Marks whether response should be hidden from COAjava.lang.Integer
linkedId
A link to multiple tables dependent onQALink.QAEventType
StockLocation
linkedStock
The stock associated with this eventjava.lang.String
notes
Additional notes to go with the answerint
qaEventType
TheQALink.QAEventType
which caused the question to be askedQALink
qaLink
The QALink event which was triggeredjava.lang.String
question
The question that was askedjava.lang.String
questionGroup
The question group the question belonged toQuestion
questionObj
The fully formed question objectjava.lang.Integer
sampleNo
A numerical sequence of how many times this question was asked in Lab Testingint
severity
Terminal
terminal
The terminal on which this QA event took placejava.util.Date
timestamp
The time when the question was answeredUser
user
The 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 int
compareTo(java.lang.Object o)
java.lang.String
getAnswer()
java.lang.Integer
getApproval()
User
getApprovalOperator()
Commodity
getCommodity()
int
getHideFromCOA()
java.lang.Integer
getLinkedId()
StockLocation
getLinkedStock()
java.lang.String
getNotes()
int
getQaEventType()
java.lang.String
getQaEventTypeStr()
QALink
getQaLink()
java.lang.String
getQuestion()
java.lang.String
getQuestionGroup()
Question
getQuestionObj()
java.lang.Integer
getSampleNo()
int
getSeverity()
Terminal
getTerminal()
java.util.Date
getTimestamp()
User
getUser()
void
setAnswer(java.lang.String answer)
void
setApproval(java.lang.Integer approval)
void
setApprovalOperator(User approvalOperator)
void
setCommodity(Commodity commodity)
void
setHideFromCOA(int hideFromCOA)
void
setLinkedId(java.lang.Integer linkedId)
void
setLinkedStock(StockLocation linkedStock)
void
setNotes(java.lang.String notes)
void
setQaEventType(int qaEventType)
void
setQaLink(QALink qaLink)
void
setQuestion(java.lang.String question)
void
setQuestionGroup(java.lang.String questionGroup)
void
setQuestionObj(Question questionObj)
void
setSampleNo(java.lang.Integer sampleNo)
void
setSeverity(int severity)
void
setTerminal(Terminal terminal)
void
setTimestamp(java.util.Date timestamp)
void
setUser(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.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 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:
compareTo
in 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)
-
-