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 class
DeviationDetails.DeviationDetailsStatus
static class
DeviationDetails.Method
static class
DeviationDetails.Severity
-
Field Summary
Fields Modifier and Type Field Description UserGroup
assignedToUserGroup
Assigned to userChecks
check
The check that is associated with the deviation.java.lang.String
comments
Any custom comments entered by the user.Commodity
commodity
The Commodity that is associated with the deviation.User
createdByUser
User IDjava.util.Date
dateClosed
The Date the deviation was closed by a user.java.util.Date
dateCreated
Creation datejava.util.Date
dateViewed
The Date the deviation was viewed by a user.java.util.Date
deleted
The Date when the deviation was deleted.java.lang.String
deviationDescription
Descriptionjava.lang.String
deviationResponse
The answer / response that was given at the time of the deviation being generated.int
deviationResponseTime
Number of days between Deviation creation and responseJobLine
jobLine
If the deviation was created from a Job.Location
location
Location IDint
method
QALog
qaLog
java.lang.String
reference
A auto generated reference for the deviation.int
severity
The severity level of the deviation generated.int
status
The status of the order.Terminal
terminal
The 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 UserGroup
getAssignedToUserGroup()
Checks
getCheck()
java.lang.String
getComments()
Commodity
getCommodity()
User
getCreatedByUser()
java.util.Date
getDateClosed()
java.util.Date
getDateCreated()
java.util.Date
getDateViewed()
java.util.Date
getDeleted()
java.lang.String
getDeviationDescription()
java.lang.String
getDeviationResponse()
int
getDeviationResponseTime()
JobLine
getJobLine()
Location
getLocation()
DeviationDetails.Method
getLossTypeEnum()
int
getMethod()
QALog
getQaLog()
java.lang.String
getReference()
int
getSeverity()
int
getStatus()
Terminal
getTerminal()
void
setAssignedToUserGroup(UserGroup assignedToUserGroup)
void
setCheck(Checks check)
void
setComments(java.lang.String comments)
void
setCommodity(Commodity commodity)
void
setCreatedByUser(User createdByUser)
void
setDateClosed(java.util.Date dateClosed)
void
setDateCreated(java.util.Date dateCreated)
void
setDateViewed(java.util.Date dateViewed)
void
setDeleted(java.util.Date deleted)
void
setDeviationDescription(java.lang.String deviationDescription)
void
setDeviationResponse(java.lang.String deviationResponse)
void
setDeviationResponseTime(int deviationResponseTime)
void
setJobLine(JobLine jobLine)
void
setLocation(Location location)
void
setMethod(int rcaMethod)
void
setQaLog(QALog qaLog)
void
setReference(java.lang.String reference)
void
setSeverity(int severity)
DeviationDetails.Severity
setSeverityModeEnum()
void
setStatus(int status)
void
setTerminal(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)
-
-