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 classSPCRun.SPCRunResultThe result of the SPCRunstatic classSPCRun.SPCRunStatusThe status of the SPC run
-
Field Summary
Fields Modifier and Type Field Description BatchbatchPertains to a particularBatchIDjava.util.DatedateCompleteThe date the run was completedjava.util.DatedateStartedThe date the run was startedJobLinejobLinePertains to a particularJobLineIDintresultThe result of the run, seeSPCRun.SPCRunResultjava.lang.LongrunTimeThe runtime of the run in secondsintsamplesThe number of samples to be performed on the runStockLocationsourceStockThe active source stock lot for the SPC runSPCCommodityspcCommodityThe SPCCommodity to execute during the runjava.lang.DoublestandardDeviationThe standard deviation of the runintstatusThe status of the SPC Run.UsersuspendedOperatorThe operator who suspended the runjava.lang.DoubletotalQtyUnusedjava.lang.StringunitsThe 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 BatchgetBatch()java.util.DategetDateComplete()java.util.DategetDateStarted()JobLinegetJobLine()intgetResult()SPCRun.SPCRunResultgetResultEnum()java.lang.StringgetResultStr()java.lang.LonggetRunTime()intgetSamples()StockLocationgetSourceStock()SPCCommoditygetSpcCommodity()java.lang.DoublegetStandardDeviation()intgetStatus()SPCRun.SPCRunStatusgetStatusEnum()java.lang.StringgetStatusStr()UsergetSuspendedOperator()java.lang.DoublegetTotalQty()java.lang.StringgetUnits()voidsetBatch(Batch batch)voidsetDateComplete(java.util.Date dateComplete)voidsetDateStarted(java.util.Date dateStarted)voidsetJobLine(JobLine jobLine)voidsetResult(int result)voidsetRunTime(java.lang.Long runTime)voidsetSamples(int samples)voidsetSourceStock(StockLocation sourceStock)voidsetSpcCommodity(SPCCommodity spcCommodity)voidsetStandardDeviation(java.lang.Double standardDeviation)voidsetStatus(int status)voidsetSuspendedOperator(User suspendedOperator)voidsetTotalQty(java.lang.Double totalQty)voidsetUnits(java.lang.String units)java.lang.StringtoString()-
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:
toStringin 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)
-
-