Package com.sgs.common.database
Class ChecksTemplates
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.ChecksTemplates
-
public class ChecksTemplates extends HibernateObject
This class represents ChecksTemplates which allow the user to create templates for a list of Checks.- Author:
- SGSystems
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChecksTemplates.Frequency
static class
ChecksTemplates.RecurDays
static class
ChecksTemplates.ScheduleType
static class
ChecksTemplates.Status
-
Field Summary
Fields Modifier and Type Field Description ApprovalTemplate
approvalTemplate
The Approval Template is uses after completing the Check.java.util.Date
deleted
The Date that the Template was deletedint
frequency
How often does a Check need to be scheduled.JobLine
jobLine
The JobLine that is assocaited with the CheckTemplate.java.util.Date
lastRunDate
When the Check was last run.Location
location
The Location where the Check is to be done.java.lang.String
name
The name of the template.int
recurDays
Which day of the week does the Check need to be run.java.lang.String
reference
A auto gernerated reference for the template.int
scheduleType
Whether is it adhoc or otherwise.Site
site
The site where the Check is to be done.java.lang.String
specification
Soecification for the template that the User can refer to when doing it.java.util.Date
startDate
If the Check is automatically scheduled then this is the Date that it starts.java.lang.Integer
templateType
0 = Checks, 1 = Asset Task-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description ChecksTemplates()
-
Method Summary
-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Field Detail
-
frequency
public int frequency
How often does a Check need to be scheduled. Daily, Weekly, Monthy.
-
jobLine
public JobLine jobLine
The JobLine that is assocaited with the CheckTemplate.
-
deleted
public java.util.Date deleted
The Date that the Template was deleted
-
recurDays
public int recurDays
Which day of the week does the Check need to be run.
-
scheduleType
public int scheduleType
Whether is it adhoc or otherwise.
-
startDate
public java.util.Date startDate
If the Check is automatically scheduled then this is the Date that it starts.
-
lastRunDate
public java.util.Date lastRunDate
When the Check was last run.
-
reference
public java.lang.String reference
A auto gernerated reference for the template.
-
approvalTemplate
public ApprovalTemplate approvalTemplate
The Approval Template is uses after completing the Check.
-
location
public Location location
The Location where the Check is to be done.
-
site
public Site site
The site where the Check is to be done.
-
specification
public java.lang.String specification
Soecification for the template that the User can refer to when doing it.
-
templateType
public java.lang.Integer templateType
0 = Checks, 1 = Asset Task
-
name
public java.lang.String name
The name of the template.
-
-
Method Detail
-
getReference
public java.lang.String getReference()
-
setReference
public void setReference(java.lang.String reference)
-
getFrequency
public int getFrequency()
-
setFrequency
public void setFrequency(int frequency)
-
getJobLine
public JobLine getJobLine()
-
setJobLine
public void setJobLine(JobLine jobLine)
-
getDeleted
public java.util.Date getDeleted()
-
setDeleted
public void setDeleted(java.util.Date deleted)
-
getRecurDays
public int getRecurDays()
-
setRecurDays
public void setRecurDays(int recurDays)
-
getScheduleType
public int getScheduleType()
-
setScheduleType
public void setScheduleType(int scheduleType)
-
getStartDate
public java.util.Date getStartDate()
-
setStartDate
public void setStartDate(java.util.Date startDate)
-
getLastRunDate
public java.util.Date getLastRunDate()
-
setLastRunDate
public void setLastRunDate(java.util.Date lastRunDate)
-
getScheduleTypeEnum
public ChecksTemplates.ScheduleType getScheduleTypeEnum()
-
setScheduleTypeEnum
public void setScheduleTypeEnum(ChecksTemplates.ScheduleType type)
-
getRecurDaysEnum
public ChecksTemplates.RecurDays getRecurDaysEnum()
-
setRecurDaysEnum
public void setRecurDaysEnum(ChecksTemplates.RecurDays type)
-
getFrequencyEnum
public ChecksTemplates.Frequency getFrequencyEnum()
-
setFrequencyEnum
public void setFrequencyEnum(ChecksTemplates.Frequency type)
-
getLocation
public Location getLocation()
-
setLocation
public void setLocation(Location location)
-
getSite
public Site getSite()
-
setSite
public void setSite(Site site)
-
getSpecification
public java.lang.String getSpecification()
-
setSpecification
public void setSpecification(java.lang.String specification)
-
getApprovalTemplate
public ApprovalTemplate getApprovalTemplate()
-
setApprovalTemplate
public void setApprovalTemplate(ApprovalTemplate approvalTemplate)
-
getTemplateType
public java.lang.Integer getTemplateType()
-
setTemplateType
public void setTemplateType(java.lang.Integer templateType)
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-