Package ch.tocco.nice2.tasks.api
Class AbstractDeleteBatchJob
java.lang.Object
ch.tocco.nice2.tasks.api.quartz.AbstractJob
ch.tocco.nice2.tasks.api.AbstractDeleteBatchJob
- All Implemented Interfaces:
org.quartz.Job
- Direct Known Subclasses:
DeleteTempDownloadsBatchJob
,DeleteTempUploadsBatchJob
,NotificationRemovalBatchJob
Can be extended for any batch job which needs to delete (cascading delete) entities
selected by a query.
-
Field Summary
Fields inherited from class ch.tocco.nice2.tasks.api.quartz.AbstractJob
businessUnitManager, l10N, logger, principalManager, securityManager
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractDeleteBatchJob
(CommandExecutor commandExecutor, DeleteService deleteService) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doExecute
(org.quartz.JobExecutionContext context, JobDataMapReader jobDataMapReader) protected abstract PersistTask
<Void, QueryBuilder> Methods inherited from class ch.tocco.nice2.tasks.api.quartz.AbstractJob
execute, getProgress, getProgressLog, setBusinessUnitManager, setConverters, setL10N, setLogger, setPrincipalManager, setProgressPersistenceManager, setRuleProviderService, setSecurityManager
-
Constructor Details
-
AbstractDeleteBatchJob
-
-
Method Details
-
doExecute
- Specified by:
doExecute
in classAbstractJob
-
getDeletionSelectionTask
- Returns:
- a
QueryBuilder
which selects all entities which need to be deleted by this batch job.
-