Package com.sgs.common.database
Class Reason
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.Reason
-
public class Reason extends HibernateObject
This class represents a reason which can be selected by an operator for certain events.- Author:
- SGSystems
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Reason.ReasonType
The place where the reason should be prompted for
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
code
A code related to this reason.java.util.Date
deleted
A deletion timestamp.int
freeText
Boolean value indicates whether the reason, if selected, allows further free-text input.java.lang.String
freeTextResponse
Internal use.boolean
hideCode
Determines whether to hide the code.Location
location
The production location where this message should appear.java.lang.String
reason
*Primary Key* The unique reason to be providedint
requiresSupervisor
Indicates whether this reason should require a supervisor for selection.int
type
The type of reason, where it should be prompted.-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description Reason()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCode()
java.util.Date
getDeleted()
int
getFreeText()
java.lang.String
getFreeTextResponse()
Location
getLocation()
java.lang.String
getReason()
java.lang.String
getReasonResponse()
int
getRequiresSupervisor()
int
getType()
Reason.ReasonType
getTypeEnum()
boolean
isHideCode()
void
setCode(java.lang.String code)
void
setDeleted(java.util.Date deleted)
void
setFreeText(int freeText)
void
setFreeTextResponse(java.lang.String freeTextResponse)
void
setHideCode(boolean hideCode)
void
setLocation(Location location)
void
setReason(java.lang.String reason)
void
setRequiresSupervisor(int requiresSupervisor)
void
setType(int type)
java.lang.String
toString()
-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Field Detail
-
reason
public java.lang.String reason
*Primary Key* The unique reason to be provided
-
deleted
public java.util.Date deleted
A deletion timestamp.
-
freeText
public int freeText
Boolean value indicates whether the reason, if selected, allows further free-text input.
-
freeTextResponse
public java.lang.String freeTextResponse
Internal use.
-
code
public java.lang.String code
A code related to this reason.
-
type
public int type
The type of reason, where it should be prompted.- See Also:
Reason.ReasonType
-
requiresSupervisor
public int requiresSupervisor
Indicates whether this reason should require a supervisor for selection.
-
location
public Location location
The production location where this message should appear.
-
hideCode
public boolean hideCode
Determines whether to hide the code.
-
-
Method Detail
-
getReason
public java.lang.String getReason()
-
getDeleted
public java.util.Date getDeleted()
-
setReason
public void setReason(java.lang.String reason)
-
setDeleted
public void setDeleted(java.util.Date deleted)
-
getFreeText
public int getFreeText()
-
setFreeText
public void setFreeText(int freeText)
-
getFreeTextResponse
public java.lang.String getFreeTextResponse()
-
setFreeTextResponse
public void setFreeTextResponse(java.lang.String freeTextResponse)
-
getReasonResponse
public java.lang.String getReasonResponse()
-
getType
public int getType()
-
setType
public void setType(int type)
-
getTypeEnum
public Reason.ReasonType getTypeEnum()
-
getCode
public java.lang.String getCode()
-
setCode
public void setCode(java.lang.String code)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getRequiresSupervisor
public int getRequiresSupervisor()
-
setRequiresSupervisor
public void setRequiresSupervisor(int requiresSupervisor)
-
getLocation
public Location getLocation()
-
setLocation
public void setLocation(Location location)
-
isHideCode
public boolean isHideCode()
-
setHideCode
public void setHideCode(boolean hideCode)
-
-