public class ERQSJobDemo extends ERQSJob
It just logs some information when the jobdescription is saved, deleted and when the method _execute is called. When _execute is called, a loop is executed and the thread is sleeping for 2s each time.
ENTERPRISE_OBJECT_KEY, NOT_PERSISTENT_OBJECT_KEY
log
Constructor and Description |
---|
ERQSJobDemo() |
Modifier and Type | Method and Description |
---|---|
protected void |
_execute()
_execute() is called by execute().
|
void |
validateForDelete(ERQSJobDescription jobDescription)
It's a good place to put code that will check if the job description can be deleted or not.
|
void |
validateForSave(ERQSJobDescription jobDescription)
It's a good place to put code that will check if the job description can be saved or not.
|
void |
willDelete(ERQSJobDescription jobDescription)
It's a good place to put code that will be executed before job description deletion.
|
void |
willSave(ERQSJobDescription jobDescription)
It's a good place to put code that will be executed before job description save.
|
execute, getJobDescription, getJobDescription, getLastExecutionDate, interrupt, isJobInterrupted
editingContext, getJobContext, getScheduler, getSchedulerFPInstance, newEditingContext, setResultMessage
protected void _execute() throws org.quartz.JobExecutionException
ERQSJob
public void willDelete(ERQSJobDescription jobDescription)
ERQSJob
Nothing is done automatically, you have to call this method manually if you want to give a chance to the job to use its own logic.
willDelete
in class ERQSJob
public void willSave(ERQSJobDescription jobDescription)
ERQSJob
Nothing is done automatically, you have to call this method manually if you want to give a chance to the job to use its own logic.
public void validateForDelete(ERQSJobDescription jobDescription)
ERQSJob
Nothing is done automatically, you have to call this method manually if you want to give a chance to the job to use its own logic.
validateForDelete
in class ERQSJob
public void validateForSave(ERQSJobDescription jobDescription)
ERQSJob
Nothing is done automatically, you have to call this method manually if you want to give a chance to the job to use its own logic.
validateForSave
in class ERQSJob
Copyright © 2002 – 2024 Project Wonder.