Class JobDefinitionEntity
java.lang.Object
org.camunda.bpm.engine.impl.persistence.entity.JobDefinitionEntity
- All Implemented Interfaces:
- Serializable,- DbEntity,- HasDbReferences,- HasDbRevision,- JobDefinition
public class JobDefinitionEntity
extends Object
implements JobDefinition, HasDbRevision, HasDbReferences, DbEntity, Serializable
- Author:
- Daniel Meyer
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionThe Id of the activity (from BPMN 2.0 Xml) this Job Definition is associated with.The id of the deployment this job definition is related to.getId()The configuration of a job definition provides details about the jobs which will be created.The Type of a job.Returns the execution priority for jobs of this definition, if it was set using theManagementServiceAPI.Returns a representation of the object, as would be stored in the database.Scope: IN-MEMORY referencesScope: IN-MEMORY referencesintintintThe id of the tenant this job definition belongs to.booleanIndicates whether this job definition is suspended.voidsetActivityId(String activityId) voidsetDeploymentId(String deploymentId) voidvoidsetJobConfiguration(String jobConfiguration) voidsetJobPriority(Long jobPriority) voidsetJobType(String jobType) voidsetProcessDefinitionId(String processDefinitionId) voidsetProcessDefinitionKey(String processDefinitionKey) voidsetRevision(int revision) voidsetSuspensionState(int state) voidsetTenantId(String tenantId) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.camunda.bpm.engine.impl.db.HasDbReferencesgetDependentEntities
- 
Field Details- 
id
- 
revisionprotected int revision
- 
processDefinitionId
- 
processDefinitionKey
- 
activityId
- 
jobTypetimer, message, ...
- 
jobConfiguration
- 
suspensionStateprotected int suspensionState
- 
jobPriority
- 
tenantId
- 
deploymentId
 
- 
- 
Constructor Details- 
JobDefinitionEntitypublic JobDefinitionEntity()
- 
JobDefinitionEntity
 
- 
- 
Method Details- 
getPersistentStateDescription copied from interface:DbEntityReturns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.- Specified by:
- getPersistentStatein interface- DbEntity
 
- 
getRevisionNextpublic int getRevisionNext()- Specified by:
- getRevisionNextin interface- HasDbRevision
 
- 
getId- Specified by:
- getIdin interface- DbEntity
- Specified by:
- getIdin interface- JobDefinition
- Returns:
- the Id of the job definition.
 
- 
setId
- 
getRevisionpublic int getRevision()- Specified by:
- getRevisionin interface- HasDbRevision
 
- 
setRevisionpublic void setRevision(int revision) - Specified by:
- setRevisionin interface- HasDbRevision
 
- 
isSuspendedpublic boolean isSuspended()Description copied from interface:JobDefinitionIndicates whether this job definition is suspended. If a job Definition is suspended, No Jobs created form the job definition will be acquired by the job executor.- Specified by:
- isSuspendedin interface- JobDefinition
- Returns:
- true if this Job Definition is currently suspended.
 
- 
getProcessDefinitionId- Specified by:
- getProcessDefinitionIdin interface- JobDefinition
- Returns:
- the id of the ProcessDefinitionthis job definition is associated with.
 
- 
setProcessDefinitionId
- 
getActivityIdDescription copied from interface:JobDefinitionThe Id of the activity (from BPMN 2.0 Xml) this Job Definition is associated with.- Specified by:
- getActivityIdin interface- JobDefinition
- Returns:
- the activity id for this Job Definition.
 
- 
setActivityId
- 
getJobTypeDescription copied from interface:JobDefinitionThe Type of a job. Asynchronous continuation, timer, ...- Specified by:
- getJobTypein interface- JobDefinition
- Returns:
- the type of a Job.
 
- 
setJobType
- 
getJobConfigurationDescription copied from interface:JobDefinitionThe configuration of a job definition provides details about the jobs which will be created. For timer jobs this method returns the timer configuration.- Specified by:
- getJobConfigurationin interface- JobDefinition
- Returns:
- the configuration of this job definition.
 
- 
setJobConfiguration
- 
getProcessDefinitionKey- Specified by:
- getProcessDefinitionKeyin interface- JobDefinition
- Returns:
- the key of the ProcessDefinitionthis job definition is associated with.
 
- 
setProcessDefinitionKey
- 
getSuspensionStatepublic int getSuspensionState()
- 
setSuspensionStatepublic void setSuspensionState(int state) 
- 
getOverridingJobPriorityDescription copied from interface:JobDefinitionReturns the execution priority for jobs of this definition, if it was set using the ManagementServiceAPI. When a job is assigned a priority, the job definition's overriding priority (if set) is used instead of the values defined in the BPMN XML.- Specified by:
- getOverridingJobPriorityin interface- JobDefinition
- Returns:
- the priority that overrides the default/BPMN XML priority or nullif no overriding priority is set
 
- 
setJobPriority
- 
getTenantIdDescription copied from interface:JobDefinitionThe id of the tenant this job definition belongs to. Can benullif the definition belongs to no single tenant.- Specified by:
- getTenantIdin interface- JobDefinition
 
- 
setTenantId
- 
getDeploymentIdDescription copied from interface:JobDefinitionThe id of the deployment this job definition is related to. In a deployment-aware setup, this leads to all jobs of the same definition being executed on the same node.- Specified by:
- getDeploymentIdin interface- JobDefinition
 
- 
setDeploymentId
- 
getReferencedEntityIdsDescription copied from interface:HasDbReferencesScope: IN-MEMORY references - Specified by:
- getReferencedEntityIdsin interface- HasDbReferences
- Returns:
- the ids of the entities that this entity references. Should only return ids for entities of the same type
 
- 
getReferencedEntitiesIdAndClassDescription copied from interface:HasDbReferencesScope: IN-MEMORY references - Specified by:
- getReferencedEntitiesIdAndClassin interface- HasDbReferences
- Returns:
- a map of the ids and the entities' classes that this entity references. It's used when trying to determine if there was an Optimistic Locking occurrence on an INSERT or UPDATE of an object of this type.
 
 
-