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_KEYlog| 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, isJobInterruptededitingContext, getJobContext, getScheduler, getSchedulerFPInstance, newEditingContext, setResultMessageprotected void _execute()
throws org.quartz.JobExecutionException
ERQSJobpublic void willDelete(ERQSJobDescription jobDescription)
ERQSJobNothing 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 ERQSJobpublic void willSave(ERQSJobDescription jobDescription)
ERQSJobNothing 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)
ERQSJobNothing 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 ERQSJobpublic void validateForSave(ERQSJobDescription jobDescription)
ERQSJobNothing 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 ERQSJobCopyright © 2002 – 2020 Project Wonder.