Class JobDefinitionEntity
- java.lang.Object
- 
- org.camunda.bpm.engine.impl.persistence.entity.JobDefinitionEntity
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- DbEntity,- HasDbReferences,- HasDbRevision,- JobDefinition
 
 public class JobDefinitionEntity extends java.lang.Object implements JobDefinition, HasDbRevision, HasDbReferences, DbEntity, java.io.Serializable - Author:
- Daniel Meyer
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringactivityIdprotected java.lang.StringdeploymentIdprotected java.lang.Stringidprotected java.lang.StringjobConfigurationprotected java.lang.LongjobPriorityprotected java.lang.StringjobTypetimer, message, ...protected java.lang.StringprocessDefinitionIdprotected java.lang.StringprocessDefinitionKeyprotected intrevisionprotected intsuspensionStateprotected java.lang.StringtenantId
 - 
Constructor SummaryConstructors Constructor Description JobDefinitionEntity()JobDefinitionEntity(JobDeclaration<?,?> jobDeclaration)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetActivityId()The Id of the activity (from BPMN 2.0 Xml) this Job Definition is associated with.java.lang.StringgetDeploymentId()The id of the deployment this job definition is related to.java.lang.StringgetId()java.lang.StringgetJobConfiguration()The configuration of a job definition provides details about the jobs which will be created.java.lang.StringgetJobType()The Type of a job.java.lang.LonggetOverridingJobPriority()Returns the execution priority for jobs of this definition, if it was set using theManagementServiceAPI.java.lang.ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.java.lang.StringgetProcessDefinitionId()java.lang.StringgetProcessDefinitionKey()java.util.Map<java.lang.String,java.lang.Class>getReferencedEntitiesIdAndClass()Scope: IN-MEMORY referencesjava.util.Set<java.lang.String>getReferencedEntityIds()Scope: IN-MEMORY referencesintgetRevision()intgetRevisionNext()intgetSuspensionState()java.lang.StringgetTenantId()The id of the tenant this job definition belongs to.booleanisSuspended()Indicates whether this job definition is suspended.voidsetActivityId(java.lang.String activityId)voidsetDeploymentId(java.lang.String deploymentId)voidsetId(java.lang.String id)voidsetJobConfiguration(java.lang.String jobConfiguration)voidsetJobPriority(java.lang.Long jobPriority)voidsetJobType(java.lang.String jobType)voidsetProcessDefinitionId(java.lang.String processDefinitionId)voidsetProcessDefinitionKey(java.lang.String processDefinitionKey)voidsetRevision(int revision)voidsetSuspensionState(int state)voidsetTenantId(java.lang.String tenantId)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.camunda.bpm.engine.impl.db.HasDbReferencesgetDependentEntities
 
- 
 
- 
- 
- 
Field Detail- 
idprotected java.lang.String id 
 - 
revisionprotected int revision 
 - 
processDefinitionIdprotected java.lang.String processDefinitionId 
 - 
processDefinitionKeyprotected java.lang.String processDefinitionKey 
 - 
activityIdprotected java.lang.String activityId 
 - 
jobTypeprotected java.lang.String jobType timer, message, ...
 - 
jobConfigurationprotected java.lang.String jobConfiguration 
 - 
suspensionStateprotected int suspensionState 
 - 
jobPriorityprotected java.lang.Long jobPriority 
 - 
tenantIdprotected java.lang.String tenantId 
 - 
deploymentIdprotected java.lang.String deploymentId 
 
- 
 - 
Constructor Detail- 
JobDefinitionEntitypublic JobDefinitionEntity() 
 - 
JobDefinitionEntitypublic JobDefinitionEntity(JobDeclaration<?,?> jobDeclaration) 
 
- 
 - 
Method Detail- 
getPersistentStatepublic java.lang.Object getPersistentState() Description 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
 
 - 
getIdpublic java.lang.String getId() - Specified by:
- getIdin interface- DbEntity
- Specified by:
- getIdin interface- JobDefinition
- Returns:
- the Id of the job definition.
 
 - 
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.
 
 - 
getProcessDefinitionIdpublic java.lang.String getProcessDefinitionId() - Specified by:
- getProcessDefinitionIdin interface- JobDefinition
- Returns:
- the id of the ProcessDefinitionthis job definition is associated with.
 
 - 
setProcessDefinitionIdpublic void setProcessDefinitionId(java.lang.String processDefinitionId) 
 - 
getActivityIdpublic java.lang.String getActivityId() Description 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.
 
 - 
setActivityIdpublic void setActivityId(java.lang.String activityId) 
 - 
getJobTypepublic java.lang.String getJobType() Description copied from interface:JobDefinitionThe Type of a job. Asynchronous continuation, timer, ...- Specified by:
- getJobTypein interface- JobDefinition
- Returns:
- the type of a Job.
 
 - 
setJobTypepublic void setJobType(java.lang.String jobType) 
 - 
getJobConfigurationpublic java.lang.String getJobConfiguration() Description 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.
 
 - 
setJobConfigurationpublic void setJobConfiguration(java.lang.String jobConfiguration) 
 - 
getProcessDefinitionKeypublic java.lang.String getProcessDefinitionKey() - Specified by:
- getProcessDefinitionKeyin interface- JobDefinition
- Returns:
- the key of the ProcessDefinitionthis job definition is associated with.
 
 - 
setProcessDefinitionKeypublic void setProcessDefinitionKey(java.lang.String processDefinitionKey) 
 - 
getSuspensionStatepublic int getSuspensionState() 
 - 
setSuspensionStatepublic void setSuspensionState(int state) 
 - 
getOverridingJobPrioritypublic java.lang.Long getOverridingJobPriority() Description 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
 
 - 
setJobPrioritypublic void setJobPriority(java.lang.Long jobPriority) 
 - 
getTenantIdpublic java.lang.String getTenantId() Description 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
 
 - 
setTenantIdpublic void setTenantId(java.lang.String tenantId) 
 - 
getDeploymentIdpublic java.lang.String getDeploymentId() Description 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
 
 - 
setDeploymentIdpublic void setDeploymentId(java.lang.String deploymentId) 
 - 
getReferencedEntityIdspublic java.util.Set<java.lang.String> getReferencedEntityIds() Description 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
 
 - 
getReferencedEntitiesIdAndClasspublic java.util.Map<java.lang.String,java.lang.Class> getReferencedEntitiesIdAndClass() Description 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.
 
 
- 
 
-