Package com.sgs.common.database
Class SPCRun
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.SPCRun
-
public class SPCRun extends HibernateObject
This class represents an SPC Run. An SPC run is a scheduled SPC event for a number of samples- Author:
- SGSystems
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SPCRun.SPCRunResult
The result of the SPCRunstatic class
SPCRun.SPCRunStatus
The status of the SPC run
-
Field Summary
Fields Modifier and Type Field Description Batch
batch
Pertains to a particularBatch
IDjava.util.Date
dateComplete
The date the run was completedjava.util.Date
dateStarted
The date the run was startedJobLine
jobLine
Pertains to a particularJobLine
IDint
result
The result of the run, seeSPCRun.SPCRunResult
java.lang.Long
runTime
The runtime of the run in secondsint
samples
The number of samples to be performed on the runStockLocation
sourceStock
The active source stock lot for the SPC runSPCCommodity
spcCommodity
The SPCCommodity to execute during the runjava.lang.Double
standardDeviation
The standard deviation of the runint
status
The status of the SPC Run.User
suspendedOperator
The operator who suspended the runjava.lang.Double
totalQty
Unusedjava.lang.String
units
The units pertaining to theSPCCommodity.target
-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description SPCRun()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Batch
getBatch()
java.util.Date
getDateComplete()
java.util.Date
getDateStarted()
JobLine
getJobLine()
int
getResult()
SPCRun.SPCRunResult
getResultEnum()
java.lang.String
getResultStr()
java.lang.Long
getRunTime()
int
getSamples()
StockLocation
getSourceStock()
SPCCommodity
getSpcCommodity()
java.lang.Double
getStandardDeviation()
int
getStatus()
SPCRun.SPCRunStatus
getStatusEnum()
java.lang.String
getStatusStr()
User
getSuspendedOperator()
java.lang.Double
getTotalQty()
java.lang.String
getUnits()
void
setBatch(Batch batch)
void
setDateComplete(java.util.Date dateComplete)
void
setDateStarted(java.util.Date dateStarted)
void
setJobLine(JobLine jobLine)
void
setResult(int result)
void
setRunTime(java.lang.Long runTime)
void
setSamples(int samples)
void
setSourceStock(StockLocation sourceStock)
void
setSpcCommodity(SPCCommodity spcCommodity)
void
setStandardDeviation(java.lang.Double standardDeviation)
void
setStatus(int status)
void
setSuspendedOperator(User suspendedOperator)
void
setTotalQty(java.lang.Double totalQty)
void
setUnits(java.lang.String units)
java.lang.String
toString()
-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Field Detail
-
spcCommodity
public SPCCommodity spcCommodity
The SPCCommodity to execute during the run
-
dateStarted
public java.util.Date dateStarted
The date the run was started
-
dateComplete
public java.util.Date dateComplete
The date the run was completed
-
status
public int status
The status of the SPC Run. SeeSPCRun.SPCRunStatus
-
samples
public int samples
The number of samples to be performed on the run
-
runTime
public java.lang.Long runTime
The runtime of the run in seconds
-
result
public int result
The result of the run, seeSPCRun.SPCRunResult
-
suspendedOperator
public User suspendedOperator
The operator who suspended the run
-
units
public java.lang.String units
The units pertaining to theSPCCommodity.target
-
standardDeviation
public java.lang.Double standardDeviation
The standard deviation of the run
-
totalQty
public java.lang.Double totalQty
Unused
-
sourceStock
public StockLocation sourceStock
The active source stock lot for the SPC run
-
-
Method Detail
-
getStatusEnum
public SPCRun.SPCRunStatus getStatusEnum()
-
getResultEnum
public SPCRun.SPCRunResult getResultEnum()
-
getStatusStr
public java.lang.String getStatusStr()
-
getResultStr
public java.lang.String getResultStr()
-
getDateStarted
public java.util.Date getDateStarted()
-
getDateComplete
public java.util.Date getDateComplete()
-
getStatus
public int getStatus()
-
getSamples
public int getSamples()
-
setDateStarted
public void setDateStarted(java.util.Date dateStarted)
-
setDateComplete
public void setDateComplete(java.util.Date dateComplete)
-
setStatus
public void setStatus(int status)
-
setSamples
public void setSamples(int samples)
-
getSpcCommodity
public SPCCommodity getSpcCommodity()
-
setSpcCommodity
public void setSpcCommodity(SPCCommodity spcCommodity)
-
getRunTime
public java.lang.Long getRunTime()
-
setRunTime
public void setRunTime(java.lang.Long runTime)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getResult
public int getResult()
-
setResult
public void setResult(int result)
-
getSuspendedOperator
public User getSuspendedOperator()
-
setSuspendedOperator
public void setSuspendedOperator(User suspendedOperator)
-
getUnits
public java.lang.String getUnits()
-
setUnits
public void setUnits(java.lang.String units)
-
getStandardDeviation
public java.lang.Double getStandardDeviation()
-
setStandardDeviation
public void setStandardDeviation(java.lang.Double standardDeviation)
-
getTotalQty
public java.lang.Double getTotalQty()
-
setTotalQty
public void setTotalQty(java.lang.Double totalQty)
-
getBatch
public Batch getBatch()
-
setBatch
public void setBatch(Batch batch)
-
getSourceStock
public StockLocation getSourceStock()
-
setSourceStock
public void setSourceStock(StockLocation sourceStock)
-
getJobLine
public JobLine getJobLine()
-
setJobLine
public void setJobLine(JobLine jobLine)
-
-