Class ExternalWorkerJobEntityManagerImpl
java.lang.Object
org.flowable.common.engine.impl.persistence.entity.AbstractEntityManager<EntityImpl,DM>
org.flowable.common.engine.impl.persistence.entity.AbstractServiceEngineEntityManager<JobServiceConfiguration,EntityImpl,DM>
org.flowable.job.service.impl.persistence.entity.AbstractJobServiceEngineEntityManager<T,DM>
org.flowable.job.service.impl.persistence.entity.JobInfoEntityManagerImpl<ExternalWorkerJobEntity,ExternalWorkerJobDataManager>
org.flowable.job.service.impl.persistence.entity.ExternalWorkerJobEntityManagerImpl
- All Implemented Interfaces:
EntityManager<ExternalWorkerJobEntity>
,ExternalWorkerJobEntityManager
,JobInfoEntityManager<ExternalWorkerJobEntity>
public class ExternalWorkerJobEntityManagerImpl
extends JobInfoEntityManagerImpl<ExternalWorkerJobEntity,ExternalWorkerJobDataManager>
implements ExternalWorkerJobEntityManager
- Author:
- Filip Hrisafov
-
Field Summary
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractServiceEngineEntityManager
serviceConfiguration
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntityManager
dataManager, engineType
-
Constructor Summary
ConstructorsConstructorDescriptionExternalWorkerJobEntityManagerImpl
(JobServiceConfiguration jobServiceConfiguration, ExternalWorkerJobDataManager jobDataManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(ExternalWorkerJobEntity entity, boolean fireDeleteEvent) protected boolean
doInsert
(ExternalWorkerJobEntity jobEntity, boolean fireCreateEvent) findExternalJobsToExecute
(ExternalWorkerJobAcquireBuilderImpl builder, int numberOfJobs) findJobByCorrelationId
(String correlationId) Find the external worker job by the given correlationIdlong
Same asExternalWorkerJobEntityManager.findJobsByQueryCriteria(ExternalWorkerJobQueryImpl)
, but only returns a count and not the instances itself.Executes aExternalWorkerJobQueryImpl
and returns the matchingExternalWorkerJobEntity
instances.findJobsByScopeIdAndSubScopeId
(String scopeId, String subScopeId) Returns allExternalWorkerJobEntity
for the given scope and subscope.findJobsByWorkerId
(String workerId) Returns allExternalWorkerJobEntity
for the given worker id.findJobsByWorkerIdAndTenantId
(String workerId, String tenantId) Returns allExternalWorkerJobEntity
for the given worker and tenant id.void
insert
(ExternalWorkerJobEntity jobEntity, boolean fireCreateEvent) boolean
Insert theExternalWorkerJobEntity
, similar to insert(ExternalWorkerJobEntity), but returns a boolean in case the insert did not go through.Methods inherited from class org.flowable.job.service.impl.persistence.entity.JobInfoEntityManagerImpl
bulkUpdateJobLockWithoutRevisionCheck, findExpiredJobs, findJobsByExecutionId, findJobsByProcessInstanceId, findJobsToExecute, resetExpiredJob, updateJobTenantIdForDeployment
Methods inherited from class org.flowable.job.service.impl.persistence.entity.AbstractJobServiceEngineEntityManager
bulkDeleteByteArraysById, createEntityEvent, deleteByteArrayRef
Methods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractServiceEngineEntityManager
getClock, getEventDispatcher, getServiceConfiguration
Methods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntityManager
create, delete, delete, findById, fireEntityDeletedEvent, fireEntityInsertedEvent, fireEntityUpdatedEvent, getDataManager, insert, setDataManager, update, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.flowable.common.engine.impl.persistence.entity.EntityManager
create, delete, delete, findById, insert, update, update
Methods inherited from interface org.flowable.job.service.impl.persistence.entity.JobInfoEntityManager
bulkUpdateJobLockWithoutRevisionCheck, findExpiredJobs, findJobsByExecutionId, findJobsByProcessInstanceId, findJobsToExecute, findJobsToExecuteAndLockInBulk, resetExpiredJob, updateJobTenantIdForDeployment
-
Constructor Details
-
ExternalWorkerJobEntityManagerImpl
public ExternalWorkerJobEntityManagerImpl(JobServiceConfiguration jobServiceConfiguration, ExternalWorkerJobDataManager jobDataManager)
-
-
Method Details
-
insertExternalWorkerJobEntity
Description copied from interface:ExternalWorkerJobEntityManager
Insert theExternalWorkerJobEntity
, similar to insert(ExternalWorkerJobEntity), but returns a boolean in case the insert did not go through. This could happen if the execution related to theExternalWorkerJobEntity
has been removed.- Specified by:
insertExternalWorkerJobEntity
in interfaceExternalWorkerJobEntityManager
-
insert
- Specified by:
insert
in interfaceEntityManager<ExternalWorkerJobEntity>
- Overrides:
insert
in classAbstractEntityManager<ExternalWorkerJobEntity,
ExternalWorkerJobDataManager>
-
doInsert
-
findJobByCorrelationId
Description copied from interface:ExternalWorkerJobEntityManager
Find the external worker job by the given correlationId- Specified by:
findJobByCorrelationId
in interfaceExternalWorkerJobEntityManager
-
findJobsByScopeIdAndSubScopeId
public List<ExternalWorkerJobEntity> findJobsByScopeIdAndSubScopeId(String scopeId, String subScopeId) Description copied from interface:ExternalWorkerJobEntityManager
Returns allExternalWorkerJobEntity
for the given scope and subscope.- Specified by:
findJobsByScopeIdAndSubScopeId
in interfaceExternalWorkerJobEntityManager
-
findJobsByWorkerId
Description copied from interface:ExternalWorkerJobEntityManager
Returns allExternalWorkerJobEntity
for the given worker id.- Specified by:
findJobsByWorkerId
in interfaceExternalWorkerJobEntityManager
-
findJobsByWorkerIdAndTenantId
public List<ExternalWorkerJobEntity> findJobsByWorkerIdAndTenantId(String workerId, String tenantId) Description copied from interface:ExternalWorkerJobEntityManager
Returns allExternalWorkerJobEntity
for the given worker and tenant id.- Specified by:
findJobsByWorkerIdAndTenantId
in interfaceExternalWorkerJobEntityManager
-
findJobsByQueryCriteria
Description copied from interface:ExternalWorkerJobEntityManager
Executes aExternalWorkerJobQueryImpl
and returns the matchingExternalWorkerJobEntity
instances.- Specified by:
findJobsByQueryCriteria
in interfaceExternalWorkerJobEntityManager
- Returns:
-
findJobCountByQueryCriteria
Description copied from interface:ExternalWorkerJobEntityManager
Same asExternalWorkerJobEntityManager.findJobsByQueryCriteria(ExternalWorkerJobQueryImpl)
, but only returns a count and not the instances itself.- Specified by:
findJobCountByQueryCriteria
in interfaceExternalWorkerJobEntityManager
-
findExternalJobsToExecute
public List<ExternalWorkerJobEntity> findExternalJobsToExecute(ExternalWorkerJobAcquireBuilderImpl builder, int numberOfJobs) - Specified by:
findExternalJobsToExecute
in interfaceExternalWorkerJobEntityManager
-
delete
- Specified by:
delete
in interfaceEntityManager<ExternalWorkerJobEntity>
- Overrides:
delete
in classAbstractEntityManager<ExternalWorkerJobEntity,
ExternalWorkerJobDataManager>
-