Package com.axelor.meta.db
Class MetaSchedule
- java.lang.Object
-
- com.axelor.db.Model
-
- com.axelor.auth.db.AuditableModel
-
- com.axelor.meta.db.MetaSchedule
-
@Entity public class MetaSchedule extends AuditableModel
This object stores the scheduler configuration.
-
-
Constructor Summary
Constructors Constructor Description MetaSchedule()MetaSchedule(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParam(MetaScheduleParam item)Add the givenMetaScheduleParamitem to theparamscollection.voidclearParams()Clear theparamscollection.booleanequals(Object obj)BooleangetActive()StringgetCron()StringgetDescription()LonggetId()StringgetJob()StringgetName()List<MetaScheduleParam>getParams()inthashCode()voidremoveParam(MetaScheduleParam item)Remove the givenMetaScheduleParamitem from theparamscollection.voidsetActive(Boolean active)voidsetCron(String cron)voidsetDescription(String description)voidsetId(Long id)voidsetJob(String job)voidsetName(String name)voidsetParams(List<MetaScheduleParam> params)StringtoString()-
Methods inherited from class com.axelor.auth.db.AuditableModel
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOn
-
Methods inherited from class com.axelor.db.Model
getArchived, getVersion, isSelected, setArchived, setSelected, setVersion
-
-
-
-
Constructor Detail
-
MetaSchedule
public MetaSchedule()
-
MetaSchedule
public MetaSchedule(String name)
-
-
Method Detail
-
getActive
public Boolean getActive()
-
setActive
public void setActive(Boolean active)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getJob
public String getJob()
-
setJob
public void setJob(String job)
-
getCron
public String getCron()
-
setCron
public void setCron(String cron)
-
getParams
public List<MetaScheduleParam> getParams()
-
setParams
public void setParams(List<MetaScheduleParam> params)
-
addParam
public void addParam(MetaScheduleParam item)
Add the givenMetaScheduleParamitem to theparamscollection.It sets
item.schedule = thisto ensure the proper relationship.- Parameters:
item- the item to add
-
removeParam
public void removeParam(MetaScheduleParam item)
Remove the givenMetaScheduleParamitem from theparamscollection.- Parameters:
item- the item to remove
-
clearParams
public void clearParams()
Clear theparamscollection.
-
-