Class MybatisExternalWorkerJobDataManager
java.lang.Object
org.flowable.common.engine.impl.db.AbstractDataManager<ExternalWorkerJobEntity>
org.flowable.job.service.impl.persistence.entity.data.impl.MybatisExternalWorkerJobDataManager
- All Implemented Interfaces:
DataManager<ExternalWorkerJobEntity>,ExternalWorkerJobDataManager,JobInfoDataManager<ExternalWorkerJobEntity>
public class MybatisExternalWorkerJobDataManager
extends AbstractDataManager<ExternalWorkerJobEntity>
implements ExternalWorkerJobDataManager
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SingleCachedEntityMatcher<ExternalWorkerJobEntity>protected CachedEntityMatcher<ExternalWorkerJobEntity>protected CachedEntityMatcher<ExternalWorkerJobEntity>protected JobServiceConfigurationFields inherited from class org.flowable.common.engine.impl.db.AbstractDataManager
MAX_ENTRIES_IN_CLAUSE -
Constructor Summary
ConstructorsConstructorDescriptionMybatisExternalWorkerJobDataManager(JobServiceConfiguration jobServiceConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionvoidbulkUpdateJobLockWithoutRevisionCheck(List<ExternalWorkerJobEntity> externalWorkerJobs, String lockOwner, Date lockExpirationTime) create()voiddeleteJobsByExecutionId(String executionId) findExpiredJobs(List<String> enabledCategories, Page page) findExternalJobsToExecute(ExternalWorkerJobAcquireBuilderImpl builder, int numberOfJobs) findJobByCorrelationId(String correlationId) longfindJobsByExecutionId(String executionId) findJobsByProcessInstanceId(String processInstanceId) findJobsByScopeIdAndSubScopeId(String scopeId, String subScopeId) findJobsByWorkerId(String workerId) findJobsByWorkerIdAndTenantId(String workerId, String tenantId) findJobsToExecute(List<String> enabledCategories, Page page) protected IdGeneratorClass<? extends ExternalWorkerJobEntity>voidresetExpiredJob(String jobId) voidupdateJobTenantIdForDeployment(String deploymentId, String newTenantId) Methods inherited from class org.flowable.common.engine.impl.db.AbstractDataManager
bulkDelete, bulkDeleteEntities, bulkUpdateEntities, createSafeInValuesList, delete, delete, deleteCachedEntities, deleteCachedEntities, executeChangeWithInClause, findById, findByQuery, getCommandContext, getDbSqlSession, getEntity, getEntityCache, getList, getList, getList, getList, getList, getListFromCache, getListFromCache, getManagedEntitySubClasses, getSession, insert, isEntityInserted, update
-
Field Details
-
jobServiceConfiguration
-
jobsByExecutionIdMatcher
-
externalWorkerJobsByScopeIdAndSubScopeIdMatcher
protected CachedEntityMatcher<ExternalWorkerJobEntity> externalWorkerJobsByScopeIdAndSubScopeIdMatcher -
externalWorkerJobByCorrelationIdMatcher
protected SingleCachedEntityMatcher<ExternalWorkerJobEntity> externalWorkerJobByCorrelationIdMatcher
-
-
Constructor Details
-
MybatisExternalWorkerJobDataManager
-
-
Method Details
-
getManagedEntityClass
- Specified by:
getManagedEntityClassin classAbstractDataManager<ExternalWorkerJobEntity>
-
create
- Specified by:
createin interfaceDataManager<ExternalWorkerJobEntity>
-
findJobByCorrelationId
- Specified by:
findJobByCorrelationIdin interfaceExternalWorkerJobDataManager
-
findJobsToExecute
- Specified by:
findJobsToExecutein interfaceJobInfoDataManager<ExternalWorkerJobEntity>
-
findJobsByExecutionId
- Specified by:
findJobsByExecutionIdin interfaceJobInfoDataManager<ExternalWorkerJobEntity>
-
findJobsByProcessInstanceId
- Specified by:
findJobsByProcessInstanceIdin interfaceJobInfoDataManager<ExternalWorkerJobEntity>
-
findExpiredJobs
- Specified by:
findExpiredJobsin interfaceJobInfoDataManager<ExternalWorkerJobEntity>
-
findJobsByQueryCriteria
- Specified by:
findJobsByQueryCriteriain interfaceExternalWorkerJobDataManager
-
findJobCountByQueryCriteria
- Specified by:
findJobCountByQueryCriteriain interfaceExternalWorkerJobDataManager
-
updateJobTenantIdForDeployment
- Specified by:
updateJobTenantIdForDeploymentin interfaceJobInfoDataManager<ExternalWorkerJobEntity>
-
bulkUpdateJobLockWithoutRevisionCheck
public void bulkUpdateJobLockWithoutRevisionCheck(List<ExternalWorkerJobEntity> externalWorkerJobs, String lockOwner, Date lockExpirationTime) - Specified by:
bulkUpdateJobLockWithoutRevisionCheckin interfaceJobInfoDataManager<ExternalWorkerJobEntity>
-
resetExpiredJob
- Specified by:
resetExpiredJobin interfaceJobInfoDataManager<ExternalWorkerJobEntity>
-
deleteJobsByExecutionId
- Specified by:
deleteJobsByExecutionIdin interfaceExternalWorkerJobDataManager
-
findExternalJobsToExecute
public List<ExternalWorkerJobEntity> findExternalJobsToExecute(ExternalWorkerJobAcquireBuilderImpl builder, int numberOfJobs) - Specified by:
findExternalJobsToExecutein interfaceExternalWorkerJobDataManager
-
findJobsByScopeIdAndSubScopeId
public List<ExternalWorkerJobEntity> findJobsByScopeIdAndSubScopeId(String scopeId, String subScopeId) - Specified by:
findJobsByScopeIdAndSubScopeIdin interfaceExternalWorkerJobDataManager
-
findJobsByWorkerId
- Specified by:
findJobsByWorkerIdin interfaceExternalWorkerJobDataManager
-
findJobsByWorkerIdAndTenantId
public List<ExternalWorkerJobEntity> findJobsByWorkerIdAndTenantId(String workerId, String tenantId) - Specified by:
findJobsByWorkerIdAndTenantIdin interfaceExternalWorkerJobDataManager
-
getIdGenerator
- Specified by:
getIdGeneratorin classAbstractDataManager<ExternalWorkerJobEntity>
-