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 betweenQuestion
and the events by which they appear- Author:
- SGSystems
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QALink.QAEventType
The event/point in operation at which this question should be askedstatic class
QALink.SignOffMode
How the Event is signed off.
-
Field Summary
Fields Modifier and Type Field Description int
active
A flag to set the Event as Active.Commodity
commodity
The commodity, if any, that triggers this event.java.util.Date
deleted
A deletion timestampint
eventType
The type of this event.java.lang.String
ignoreCodes
Any commodity codes, comma separated, to ignore, should you chose to leavecommodity
nullCommodityGroup
ignoreGroup
int
interval
The interval in seconds should this be a PERIODIC eventLocation
location
The production location that this should appear atjava.lang.Double
lowerRange
If the answer is numeric, the lower range of acceptabilityint
nonMandatory
Boolean value to specify whether the question is mandatoryint
nonReported
Boolean value to specify whether the response should not be reported onjava.lang.Integer
priority
A numeric value to indicate the sequence that questions should be asked in.Question
question
The question to ask when this event is triggeredint
requiresVerification
Boolean value to specify whether the response will require separate supervisor verificationint
signOffMode
java.lang.String
specialInstructions
Any special instructions provided for this questionjava.lang.String
specification
A specification description fieldLocation
stockLocation
The stock location that this should appear atint
timer
Internal use for intervaljava.lang.Double
upperRange
If 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 int
getActive()
Commodity
getCommodity()
java.util.Date
getDeleted()
int
getEventType()
QALink.QAEventType
getEventTypeEnum()
java.lang.String
getIgnoreCodes()
CommodityGroup
getIgnoreGroup()
int
getInterval()
Location
getLocation()
java.lang.Double
getLowerRange()
int
getNonMandatory()
int
getNonReported()
java.lang.Integer
getPriority()
Question
getQuestion()
int
getRequiresVerification()
int
getSignOffMode()
QALink.SignOffMode
getSignOffModeEnum()
java.lang.String
getSpecialInstructions()
java.lang.String
getSpecification()
Location
getStockLocation()
int
getTimer()
java.lang.Double
getUpperRange()
boolean
isRunning()
void
setActive(int active)
void
setCommodity(Commodity commodity)
void
setDeleted(java.util.Date deleted)
void
setEventType(int eventType)
void
setEventTypeEnum(QALink.QAEventType type)
void
setIgnoreCodes(java.lang.String ignoreCodes)
void
setIgnoreGroup(CommodityGroup ignoreGroup)
void
setInterval(int interval)
void
setLocation(Location location)
void
setLowerRange(java.lang.Double lowerRange)
void
setNonMandatory(int nonMandatory)
void
setNonReported(int nonReported)
void
setPriority(java.lang.Integer priority)
void
setQuestion(Question question)
void
setRequiresVerification(int requiresVerification)
void
setRunning(boolean isRunning)
void
setSignOffMode(int signOffMode)
void
setSpecialInstructions(java.lang.String specialInstructions)
void
setSpecification(java.lang.String specification)
void
setStockLocation(Location stockLocation)
void
setTimer(int timer)
void
setUpperRange(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 leavecommodity
null
-
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)
-
-