Package com.sgs.common.database
Class QALink
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.QALink
-
public class QALink extends HibernateObject
This class represents the link betweenQuestionand the events by which they appear- Author:
- SGSystems
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQALink.QAEventTypeThe event/point in operation at which this question should be askedstatic classQALink.SignOffModeHow the Event is signed off.
-
Field Summary
Fields Modifier and Type Field Description intactiveA flag to set the Event as Active.CommoditycommodityThe commodity, if any, that triggers this event.java.util.DatedeletedA deletion timestampinteventTypeThe type of this event.java.lang.StringignoreCodesAny commodity codes, comma separated, to ignore, should you chose to leavecommoditynullCommodityGroupignoreGroupintintervalThe interval in seconds should this be a PERIODIC eventLocationlocationThe production location that this should appear atjava.lang.DoublelowerRangeIf the answer is numeric, the lower range of acceptabilityintnonMandatoryBoolean value to specify whether the question is mandatoryintnonReportedBoolean value to specify whether the response should not be reported onjava.lang.IntegerpriorityA numeric value to indicate the sequence that questions should be asked in.QuestionquestionThe question to ask when this event is triggeredintrequiresVerificationBoolean value to specify whether the response will require separate supervisor verificationintsignOffModejava.lang.StringspecialInstructionsAny special instructions provided for this questionjava.lang.StringspecificationA specification description fieldLocationstockLocationThe stock location that this should appear atinttimerInternal use for intervaljava.lang.DoubleupperRangeIf the answer is numeric, the upper range of acceptability-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description QALink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetActive()CommoditygetCommodity()java.util.DategetDeleted()intgetEventType()QALink.QAEventTypegetEventTypeEnum()java.lang.StringgetIgnoreCodes()CommodityGroupgetIgnoreGroup()intgetInterval()LocationgetLocation()java.lang.DoublegetLowerRange()intgetNonMandatory()intgetNonReported()java.lang.IntegergetPriority()QuestiongetQuestion()intgetRequiresVerification()intgetSignOffMode()QALink.SignOffModegetSignOffModeEnum()java.lang.StringgetSpecialInstructions()java.lang.StringgetSpecification()LocationgetStockLocation()intgetTimer()java.lang.DoublegetUpperRange()booleanisRunning()voidsetActive(int active)voidsetCommodity(Commodity commodity)voidsetDeleted(java.util.Date deleted)voidsetEventType(int eventType)voidsetEventTypeEnum(QALink.QAEventType type)voidsetIgnoreCodes(java.lang.String ignoreCodes)voidsetIgnoreGroup(CommodityGroup ignoreGroup)voidsetInterval(int interval)voidsetLocation(Location location)voidsetLowerRange(java.lang.Double lowerRange)voidsetNonMandatory(int nonMandatory)voidsetNonReported(int nonReported)voidsetPriority(java.lang.Integer priority)voidsetQuestion(Question question)voidsetRequiresVerification(int requiresVerification)voidsetRunning(boolean isRunning)voidsetSignOffMode(int signOffMode)voidsetSpecialInstructions(java.lang.String specialInstructions)voidsetSpecification(java.lang.String specification)voidsetStockLocation(Location stockLocation)voidsetTimer(int timer)voidsetUpperRange(java.lang.Double upperRange)-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Field Detail
-
question
public Question question
The question to ask when this event is triggered
-
commodity
public Commodity commodity
The commodity, if any, that triggers this event. Blank will apply to all commodities
-
location
public Location location
The production location that this should appear at
-
eventType
public int eventType
The type of this event. SeeQALink.QAEventType
-
nonMandatory
public int nonMandatory
Boolean value to specify whether the question is mandatory
-
nonReported
public int nonReported
Boolean value to specify whether the response should not be reported on
-
specialInstructions
public java.lang.String specialInstructions
Any special instructions provided for this question
-
requiresVerification
public int requiresVerification
Boolean value to specify whether the response will require separate supervisor verification
-
priority
public java.lang.Integer priority
A numeric value to indicate the sequence that questions should be asked in. 1 being the highest.
-
ignoreCodes
public java.lang.String ignoreCodes
Any commodity codes, comma separated, to ignore, should you chose to leavecommoditynull
-
lowerRange
public java.lang.Double lowerRange
If the answer is numeric, the lower range of acceptability
-
upperRange
public java.lang.Double upperRange
If the answer is numeric, the upper range of acceptability
-
deleted
public java.util.Date deleted
A deletion timestamp
-
interval
public int interval
The interval in seconds should this be a PERIODIC event
-
timer
public int timer
Internal use for interval
-
specification
public java.lang.String specification
A specification description field
-
active
public int active
A flag to set the Event as Active. If the Event is not Active then it will not be triggered in the system.
-
signOffMode
public int signOffMode
-
stockLocation
public Location stockLocation
The stock location that this should appear at
-
ignoreGroup
public CommodityGroup ignoreGroup
-
-
Method Detail
-
getCommodity
public Commodity getCommodity()
-
setCommodity
public void setCommodity(Commodity commodity)
-
getEventType
public int getEventType()
-
setEventType
public void setEventType(int eventType)
-
getQuestion
public Question getQuestion()
-
setQuestion
public void setQuestion(Question question)
-
getEventTypeEnum
public QALink.QAEventType getEventTypeEnum()
-
setEventTypeEnum
public void setEventTypeEnum(QALink.QAEventType type)
-
getLocation
public Location getLocation()
-
setLocation
public void setLocation(Location location)
-
getNonMandatory
public int getNonMandatory()
-
getNonReported
public int getNonReported()
-
setNonMandatory
public void setNonMandatory(int nonMandatory)
-
setNonReported
public void setNonReported(int nonReported)
-
getSpecialInstructions
public java.lang.String getSpecialInstructions()
-
setSpecialInstructions
public void setSpecialInstructions(java.lang.String specialInstructions)
-
getRequiresVerification
public int getRequiresVerification()
-
setRequiresVerification
public void setRequiresVerification(int requiresVerification)
-
getPriority
public java.lang.Integer getPriority()
-
setPriority
public void setPriority(java.lang.Integer priority)
-
getIgnoreCodes
public java.lang.String getIgnoreCodes()
-
setIgnoreCodes
public void setIgnoreCodes(java.lang.String ignoreCodes)
-
getLowerRange
public java.lang.Double getLowerRange()
-
setLowerRange
public void setLowerRange(java.lang.Double lowerRange)
-
getUpperRange
public java.lang.Double getUpperRange()
-
setUpperRange
public void setUpperRange(java.lang.Double upperRange)
-
getDeleted
public java.util.Date getDeleted()
-
setDeleted
public void setDeleted(java.util.Date deleted)
-
getInterval
public int getInterval()
-
setInterval
public void setInterval(int interval)
-
getTimer
public int getTimer()
-
setTimer
public void setTimer(int timer)
-
isRunning
public boolean isRunning()
-
setRunning
public void setRunning(boolean isRunning)
-
getSpecification
public java.lang.String getSpecification()
-
setSpecification
public void setSpecification(java.lang.String specification)
-
getActive
public int getActive()
-
setActive
public void setActive(int active)
-
getSignOffMode
public int getSignOffMode()
-
setSignOffMode
public void setSignOffMode(int signOffMode)
-
getSignOffModeEnum
public QALink.SignOffMode getSignOffModeEnum()
-
getStockLocation
public Location getStockLocation()
-
setStockLocation
public void setStockLocation(Location stockLocation)
-
getIgnoreGroup
public CommodityGroup getIgnoreGroup()
-
setIgnoreGroup
public void setIgnoreGroup(CommodityGroup ignoreGroup)
-
-