@Entity public class MetaSchedule extends AuditableModel
Constructor and Description |
---|
MetaSchedule() |
MetaSchedule(String name) |
Modifier and Type | Method and Description |
---|---|
void |
addParam(MetaScheduleParam item)
Add the given
MetaScheduleParam item to the params . |
void |
clearParams()
Clear the
params collection. |
boolean |
equals(Object obj) |
Boolean |
getActive() |
String |
getCron() |
String |
getDescription() |
Long |
getId() |
String |
getJob() |
String |
getName() |
List<MetaScheduleParam> |
getParams() |
int |
hashCode() |
void |
removeParam(MetaScheduleParam item)
Remove the given
MetaScheduleParam item from the params . |
void |
setActive(Boolean active) |
void |
setCron(String cron) |
void |
setDescription(String description) |
void |
setId(Long id) |
void |
setJob(String job) |
void |
setName(String name) |
void |
setParams(List<MetaScheduleParam> params) |
String |
toString() |
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOn
getArchived, getVersion, isSelected, setArchived, setSelected, setVersion
public MetaSchedule()
public MetaSchedule(String name)
public Boolean getActive()
public void setActive(Boolean active)
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public String getJob()
public void setJob(String job)
public String getCron()
public void setCron(String cron)
public List<MetaScheduleParam> getParams()
public void setParams(List<MetaScheduleParam> params)
public void addParam(MetaScheduleParam item)
MetaScheduleParam
item to the params
.
It sets item.schedule = this
to ensure the proper relationship.
item
- the item to addpublic void removeParam(MetaScheduleParam item)
MetaScheduleParam
item from the params
.item
- the item to removepublic void clearParams()
params
collection.
If you have to query MetaScheduleParam
records in same transaction, make sure to
call EntityManager.flush()
to avoid unexpected errors.