org.camunda.bpm.engine.impl.persistence.entity
Class JobDefinitionEntity

java.lang.Object
  extended by org.camunda.bpm.engine.impl.persistence.entity.JobDefinitionEntity
All Implemented Interfaces:
Serializable, HasRevision, PersistentObject, JobDefinition

public class JobDefinitionEntity
extends Object
implements JobDefinition, HasRevision, PersistentObject, Serializable

Author:
Daniel Meyer
See Also:
Serialized Form

Field Summary
protected  String activityId
           
protected  String id
           
protected  String jobConfiguration
           
protected  String jobType
          timer, message, ...
protected  String processDefinitionId
           
protected  String processDefinitionKey
           
protected  int revision
           
protected  int suspensionState
           
 
Constructor Summary
JobDefinitionEntity()
           
JobDefinitionEntity(JobDeclaration<?> jobDeclaration)
           
 
Method Summary
 String getActivityId()
          The Id of the activity (from BPMN 2.0 Xml) this Job Definition is associated with.
 String getId()
           
 String getJobConfiguration()
          The configuration of a job definition provides details about the jobs which will be created.
 String getJobType()
          The Type of a job.
 Object getPersistentState()
          Returns a representation of the object, as would be stored in the database.
 String getProcessDefinitionId()
           
 String getProcessDefinitionKey()
           
 int getRevision()
           
 int getRevisionNext()
           
 int getSuspensionState()
           
 boolean isSuspended()
          Indicates whether this job definition is suspended.
 void setActivityId(String activityId)
           
 void setId(String id)
           
 void setJobConfiguration(String jobConfiguration)
           
 void setJobType(String jobType)
           
 void setProcessDefinitionId(String processDefinitionId)
           
 void setProcessDefinitionKey(String processDefinitionKey)
           
 void setRevision(int revision)
           
 void setSuspensionState(int state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected String id

revision

protected int revision

processDefinitionId

protected String processDefinitionId

processDefinitionKey

protected String processDefinitionKey

activityId

protected String activityId

jobType

protected String jobType
timer, message, ...


jobConfiguration

protected String jobConfiguration

suspensionState

protected int suspensionState
Constructor Detail

JobDefinitionEntity

public JobDefinitionEntity()

JobDefinitionEntity

public JobDefinitionEntity(JobDeclaration<?> jobDeclaration)
Method Detail

getPersistentState

public Object getPersistentState()
Description copied from interface: PersistentObject
Returns 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:
getPersistentState in interface PersistentObject

getRevisionNext

public int getRevisionNext()
Specified by:
getRevisionNext in interface HasRevision

getId

public String getId()
Specified by:
getId in interface PersistentObject
Specified by:
getId in interface JobDefinition
Returns:
the Id of the job definition.

setId

public void setId(String id)
Specified by:
setId in interface PersistentObject

getRevision

public int getRevision()
Specified by:
getRevision in interface HasRevision

setRevision

public void setRevision(int revision)
Specified by:
setRevision in interface HasRevision

isSuspended

public boolean isSuspended()
Description copied from interface: JobDefinition
Indicates 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:
isSuspended in interface JobDefinition
Returns:
true if this Job Definition is currently suspended.

getProcessDefinitionId

public String getProcessDefinitionId()
Specified by:
getProcessDefinitionId in interface JobDefinition
Returns:
the id of the ProcessDefinition this job definition is associated with.

setProcessDefinitionId

public void setProcessDefinitionId(String processDefinitionId)

getActivityId

public String getActivityId()
Description copied from interface: JobDefinition
The Id of the activity (from BPMN 2.0 Xml) this Job Definition is associated with.

Specified by:
getActivityId in interface JobDefinition
Returns:
the activity id for this Job Definition.

setActivityId

public void setActivityId(String activityId)

getJobType

public String getJobType()
Description copied from interface: JobDefinition
The Type of a job. Asynchronous continuation, timer, ...

Specified by:
getJobType in interface JobDefinition
Returns:
the type of a Job.

setJobType

public void setJobType(String jobType)

getJobConfiguration

public String getJobConfiguration()
Description copied from interface: JobDefinition
The 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:
getJobConfiguration in interface JobDefinition
Returns:
the configuration of this job definition.

setJobConfiguration

public void setJobConfiguration(String jobConfiguration)

getProcessDefinitionKey

public String getProcessDefinitionKey()
Specified by:
getProcessDefinitionKey in interface JobDefinition
Returns:
the key of the ProcessDefinition this job definition is associated with.

setProcessDefinitionKey

public void setProcessDefinitionKey(String processDefinitionKey)

getSuspensionState

public int getSuspensionState()

setSuspensionState

public void setSuspensionState(int state)


Copyright © 2014 camunda services GmbH. All Rights Reserved.