Package com.sgs.common.database
Class DeviationDetails
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.DeviationDetails
-
public class DeviationDetails extends HibernateObject
This class represents the link between customer groups and commodities. It helps identify which commodities are sold by which customer groups along with other information that can be stored alongside this data- Author:
- SGSystems
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviationDetails.DeviationDetailsStatusstatic classDeviationDetails.Methodstatic classDeviationDetails.Severity
-
Field Summary
Fields Modifier and Type Field Description UserGroupassignedToUserGroupAssigned to userCheckscheckThe check that is associated with the deviation.java.lang.StringcommentsAny custom comments entered by the user.CommoditycommodityThe Commodity that is associated with the deviation.UsercreatedByUserUser IDjava.util.DatedateClosedThe Date the deviation was closed by a user.java.util.DatedateCreatedCreation datejava.util.DatedateViewedThe Date the deviation was viewed by a user.java.util.DatedeletedThe Date when the deviation was deleted.java.lang.StringdeviationDescriptionDescriptionjava.lang.StringdeviationResponseThe answer / response that was given at the time of the deviation being generated.intdeviationResponseTimeNumber of days between Deviation creation and responseJobLinejobLineIf the deviation was created from a Job.LocationlocationLocation IDintmethodQALogqaLogjava.lang.StringreferenceA auto generated reference for the deviation.intseverityThe severity level of the deviation generated.intstatusThe status of the order.TerminalterminalThe device that the deviation was generated from.-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description DeviationDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserGroupgetAssignedToUserGroup()ChecksgetCheck()java.lang.StringgetComments()CommoditygetCommodity()UsergetCreatedByUser()java.util.DategetDateClosed()java.util.DategetDateCreated()java.util.DategetDateViewed()java.util.DategetDeleted()java.lang.StringgetDeviationDescription()java.lang.StringgetDeviationResponse()intgetDeviationResponseTime()JobLinegetJobLine()LocationgetLocation()DeviationDetails.MethodgetLossTypeEnum()intgetMethod()QALoggetQaLog()java.lang.StringgetReference()intgetSeverity()intgetStatus()TerminalgetTerminal()voidsetAssignedToUserGroup(UserGroup assignedToUserGroup)voidsetCheck(Checks check)voidsetComments(java.lang.String comments)voidsetCommodity(Commodity commodity)voidsetCreatedByUser(User createdByUser)voidsetDateClosed(java.util.Date dateClosed)voidsetDateCreated(java.util.Date dateCreated)voidsetDateViewed(java.util.Date dateViewed)voidsetDeleted(java.util.Date deleted)voidsetDeviationDescription(java.lang.String deviationDescription)voidsetDeviationResponse(java.lang.String deviationResponse)voidsetDeviationResponseTime(int deviationResponseTime)voidsetJobLine(JobLine jobLine)voidsetLocation(Location location)voidsetMethod(int rcaMethod)voidsetQaLog(QALog qaLog)voidsetReference(java.lang.String reference)voidsetSeverity(int severity)DeviationDetails.SeveritysetSeverityModeEnum()voidsetStatus(int status)voidsetTerminal(Terminal terminal)-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Field Detail
-
dateCreated
public java.util.Date dateCreated
Creation date
-
createdByUser
public User createdByUser
User ID
-
location
public Location location
Location ID
-
assignedToUserGroup
public UserGroup assignedToUserGroup
Assigned to user
-
deviationDescription
public java.lang.String deviationDescription
Description
-
status
public int status
The status of the order. SeeDeviationDetails.DeviationDetailsStatus
-
deviationResponseTime
public int deviationResponseTime
Number of days between Deviation creation and response
-
qaLog
public QALog qaLog
-
severity
public int severity
The severity level of the deviation generated.
-
terminal
public Terminal terminal
The device that the deviation was generated from.
-
reference
public java.lang.String reference
A auto generated reference for the deviation.
-
commodity
public Commodity commodity
The Commodity that is associated with the deviation.
-
deviationResponse
public java.lang.String deviationResponse
The answer / response that was given at the time of the deviation being generated.
-
comments
public java.lang.String comments
Any custom comments entered by the user.
-
deleted
public java.util.Date deleted
The Date when the deviation was deleted.
-
check
public Checks check
The check that is associated with the deviation. It is the Check that created the deviation.
-
dateViewed
public java.util.Date dateViewed
The Date the deviation was viewed by a user.
-
dateClosed
public java.util.Date dateClosed
The Date the deviation was closed by a user.
-
jobLine
public JobLine jobLine
If the deviation was created from a Job.
-
method
public int method
-
-
Method Detail
-
getComments
public java.lang.String getComments()
-
setComments
public void setComments(java.lang.String comments)
-
getDeviationResponse
public java.lang.String getDeviationResponse()
-
setDeviationResponse
public void setDeviationResponse(java.lang.String deviationResponse)
-
getCommodity
public Commodity getCommodity()
-
setCommodity
public void setCommodity(Commodity commodity)
-
getLossTypeEnum
public DeviationDetails.Method getLossTypeEnum()
-
getMethod
public int getMethod()
-
setMethod
public void setMethod(int rcaMethod)
-
getQaLog
public QALog getQaLog()
-
setQaLog
public void setQaLog(QALog qaLog)
-
getDateCreated
public java.util.Date getDateCreated()
-
setDateCreated
public void setDateCreated(java.util.Date dateCreated)
-
getCreatedByUser
public User getCreatedByUser()
-
setCreatedByUser
public void setCreatedByUser(User createdByUser)
-
getLocation
public Location getLocation()
-
setLocation
public void setLocation(Location location)
-
getAssignedToUserGroup
public UserGroup getAssignedToUserGroup()
-
setAssignedToUserGroup
public void setAssignedToUserGroup(UserGroup assignedToUserGroup)
-
getDeviationDescription
public java.lang.String getDeviationDescription()
-
setDeviationDescription
public void setDeviationDescription(java.lang.String deviationDescription)
-
getStatus
public int getStatus()
-
setStatus
public void setStatus(int status)
-
getDeviationResponseTime
public int getDeviationResponseTime()
-
setDeviationResponseTime
public void setDeviationResponseTime(int deviationResponseTime)
-
getSeverity
public int getSeverity()
-
setSeverity
public void setSeverity(int severity)
-
setSeverityModeEnum
public DeviationDetails.Severity setSeverityModeEnum()
-
getTerminal
public Terminal getTerminal()
-
setTerminal
public void setTerminal(Terminal terminal)
-
getReference
public java.lang.String getReference()
-
setReference
public void setReference(java.lang.String reference)
-
getDeleted
public java.util.Date getDeleted()
-
setDeleted
public void setDeleted(java.util.Date deleted)
-
getCheck
public Checks getCheck()
-
setCheck
public void setCheck(Checks check)
-
getDateViewed
public java.util.Date getDateViewed()
-
setDateViewed
public void setDateViewed(java.util.Date dateViewed)
-
getDateClosed
public java.util.Date getDateClosed()
-
setDateClosed
public void setDateClosed(java.util.Date dateClosed)
-
getJobLine
public JobLine getJobLine()
-
setJobLine
public void setJobLine(JobLine jobLine)
-
-