Class AbstractJobEntityImpl
- java.lang.Object
-
- org.activiti.engine.impl.persistence.entity.AbstractEntity
-
- org.activiti.engine.impl.persistence.entity.AbstractJobEntityImpl
-
- All Implemented Interfaces:
java.io.Serializable,BulkDeleteable,HasRevision,AbstractJobEntity,Entity,Job
- Direct Known Subclasses:
DeadLetterJobEntityImpl,JobEntityImpl,SuspendedJobEntityImpl,TimerJobEntityImpl
public abstract class AbstractJobEntityImpl extends AbstractEntity implements AbstractJobEntity, BulkDeleteable, java.io.Serializable
Abstract job entity class.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Dateduedateprotected java.util.DateendDateprotected ByteArrayRefexceptionByteArrayRefprotected java.lang.StringexceptionMessageprotected java.lang.StringexecutionIdprotected booleanisExclusiveprotected java.lang.StringjobHandlerConfigurationprotected java.lang.StringjobHandlerTypeprotected java.lang.StringjobTypeprotected intmaxIterationsprotected java.lang.StringprocessDefinitionIdprotected java.lang.StringprocessInstanceIdprotected java.lang.Stringrepeatprotected intretriesprotected java.lang.StringtenantId-
Fields inherited from class org.activiti.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, revision
-
Fields inherited from interface org.activiti.engine.runtime.Job
DEFAULT_EXCLUSIVE, JOB_TYPE_MESSAGE, JOB_TYPE_TIMER, MAX_EXCEPTION_MESSAGE_LENGTH
-
-
Constructor Summary
Constructors Constructor Description AbstractJobEntityImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.DategetDuedate()Returns the date on which this job is supposed to be processed.java.util.DategetEndDate()ByteArrayRefgetExceptionByteArrayRef()java.lang.StringgetExceptionMessage()Returns the message of the exception that occurred, the last time the job was executed.java.lang.StringgetExceptionStacktrace()java.lang.StringgetExecutionId()Returns the specific execution on which the job was created.java.lang.StringgetJobHandlerConfiguration()Get the job configuration.java.lang.StringgetJobHandlerType()Get the job handler type.java.lang.StringgetJobType()Get the job type for this job.intgetMaxIterations()java.lang.ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.java.lang.StringgetProcessDefinitionId()Returns the specific process definition on which the job was createdjava.lang.StringgetProcessInstanceId()Returns the id of the process instance which execution created the job.java.lang.StringgetRepeat()intgetRetries()Returns the number of retries this job has left.java.lang.StringgetTenantId()Get the tenant identifier for this job.protected byte[]getUtf8Bytes(java.lang.String str)booleanisExclusive()Is the job exclusive?voidsetDuedate(java.util.Date duedate)voidsetEndDate(java.util.Date endDate)voidsetExceptionMessage(java.lang.String exceptionMessage)voidsetExceptionStacktrace(java.lang.String exception)voidsetExclusive(boolean isExclusive)voidsetExecution(ExecutionEntity execution)voidsetExecutionId(java.lang.String executionId)voidsetJobHandlerConfiguration(java.lang.String jobHandlerConfiguration)voidsetJobHandlerType(java.lang.String jobHandlerType)voidsetJobType(java.lang.String jobType)voidsetMaxIterations(int maxIterations)voidsetProcessDefinitionId(java.lang.String processDefinitionId)voidsetProcessInstanceId(java.lang.String processInstanceId)voidsetRepeat(java.lang.String repeat)voidsetRetries(int retries)voidsetTenantId(java.lang.String tenantId)java.lang.StringtoString()-
Methods inherited from class org.activiti.engine.impl.persistence.entity.AbstractEntity
getId, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setRevision, setUpdated
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.activiti.engine.impl.persistence.entity.Entity
getId, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setUpdated
-
Methods inherited from interface org.activiti.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
-
-
-
-
Field Detail
-
duedate
protected java.util.Date duedate
-
executionId
protected java.lang.String executionId
-
processInstanceId
protected java.lang.String processInstanceId
-
processDefinitionId
protected java.lang.String processDefinitionId
-
isExclusive
protected boolean isExclusive
-
retries
protected int retries
-
maxIterations
protected int maxIterations
-
repeat
protected java.lang.String repeat
-
endDate
protected java.util.Date endDate
-
jobHandlerType
protected java.lang.String jobHandlerType
-
jobHandlerConfiguration
protected java.lang.String jobHandlerConfiguration
-
exceptionByteArrayRef
protected ByteArrayRef exceptionByteArrayRef
-
exceptionMessage
protected java.lang.String exceptionMessage
-
tenantId
protected java.lang.String tenantId
-
jobType
protected java.lang.String jobType
-
-
Method Detail
-
getPersistentState
public java.lang.Object getPersistentState()
Description copied from interface:EntityReturns 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 interfaceEntity
-
setExecution
public void setExecution(ExecutionEntity execution)
- Specified by:
setExecutionin interfaceAbstractJobEntity
-
getDuedate
public java.util.Date getDuedate()
Description copied from interface:JobReturns the date on which this job is supposed to be processed.- Specified by:
getDuedatein interfaceJob
-
setDuedate
public void setDuedate(java.util.Date duedate)
- Specified by:
setDuedatein interfaceAbstractJobEntity
-
getExecutionId
public java.lang.String getExecutionId()
Description copied from interface:JobReturns the specific execution on which the job was created.- Specified by:
getExecutionIdin interfaceJob
-
setExecutionId
public void setExecutionId(java.lang.String executionId)
- Specified by:
setExecutionIdin interfaceAbstractJobEntity
-
getRetries
public int getRetries()
Description copied from interface:JobReturns the number of retries this job has left. Whenever the jobexecutor fails to execute the job, this value is decremented. When it hits zero, the job is supposed to be dead and not retried again (ie a manual retry is required then).- Specified by:
getRetriesin interfaceJob
-
setRetries
public void setRetries(int retries)
- Specified by:
setRetriesin interfaceAbstractJobEntity
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
Description copied from interface:JobReturns the id of the process instance which execution created the job.- Specified by:
getProcessInstanceIdin interfaceJob
-
setProcessInstanceId
public void setProcessInstanceId(java.lang.String processInstanceId)
- Specified by:
setProcessInstanceIdin interfaceAbstractJobEntity
-
isExclusive
public boolean isExclusive()
Description copied from interface:JobIs the job exclusive?- Specified by:
isExclusivein interfaceAbstractJobEntity- Specified by:
isExclusivein interfaceJob
-
setExclusive
public void setExclusive(boolean isExclusive)
- Specified by:
setExclusivein interfaceAbstractJobEntity
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
Description copied from interface:JobReturns the specific process definition on which the job was created- Specified by:
getProcessDefinitionIdin interfaceJob
-
setProcessDefinitionId
public void setProcessDefinitionId(java.lang.String processDefinitionId)
- Specified by:
setProcessDefinitionIdin interfaceAbstractJobEntity
-
getRepeat
public java.lang.String getRepeat()
- Specified by:
getRepeatin interfaceAbstractJobEntity
-
setRepeat
public void setRepeat(java.lang.String repeat)
- Specified by:
setRepeatin interfaceAbstractJobEntity
-
getEndDate
public java.util.Date getEndDate()
- Specified by:
getEndDatein interfaceAbstractJobEntity
-
setEndDate
public void setEndDate(java.util.Date endDate)
- Specified by:
setEndDatein interfaceAbstractJobEntity
-
getMaxIterations
public int getMaxIterations()
- Specified by:
getMaxIterationsin interfaceAbstractJobEntity
-
setMaxIterations
public void setMaxIterations(int maxIterations)
- Specified by:
setMaxIterationsin interfaceAbstractJobEntity
-
getJobHandlerType
public java.lang.String getJobHandlerType()
Description copied from interface:JobGet the job handler type.- Specified by:
getJobHandlerTypein interfaceAbstractJobEntity- Specified by:
getJobHandlerTypein interfaceJob
-
setJobHandlerType
public void setJobHandlerType(java.lang.String jobHandlerType)
- Specified by:
setJobHandlerTypein interfaceAbstractJobEntity
-
getJobHandlerConfiguration
public java.lang.String getJobHandlerConfiguration()
Description copied from interface:JobGet the job configuration.- Specified by:
getJobHandlerConfigurationin interfaceAbstractJobEntity- Specified by:
getJobHandlerConfigurationin interfaceJob
-
setJobHandlerConfiguration
public void setJobHandlerConfiguration(java.lang.String jobHandlerConfiguration)
- Specified by:
setJobHandlerConfigurationin interfaceAbstractJobEntity
-
getJobType
public java.lang.String getJobType()
Description copied from interface:JobGet the job type for this job.- Specified by:
getJobTypein interfaceAbstractJobEntity- Specified by:
getJobTypein interfaceJob
-
setJobType
public void setJobType(java.lang.String jobType)
- Specified by:
setJobTypein interfaceAbstractJobEntity
-
getTenantId
public java.lang.String getTenantId()
Description copied from interface:JobGet the tenant identifier for this job.- Specified by:
getTenantIdin interfaceJob
-
setTenantId
public void setTenantId(java.lang.String tenantId)
- Specified by:
setTenantIdin interfaceAbstractJobEntity
-
getExceptionStacktrace
public java.lang.String getExceptionStacktrace()
- Specified by:
getExceptionStacktracein interfaceAbstractJobEntity
-
setExceptionStacktrace
public void setExceptionStacktrace(java.lang.String exception)
- Specified by:
setExceptionStacktracein interfaceAbstractJobEntity
-
getExceptionMessage
public java.lang.String getExceptionMessage()
Description copied from interface:JobReturns the message of the exception that occurred, the last time the job was executed. Returns null when no exception occurred. To get the full exception stacktrace, useManagementService.getJobExceptionStacktrace(String)- Specified by:
getExceptionMessagein interfaceJob
-
setExceptionMessage
public void setExceptionMessage(java.lang.String exceptionMessage)
- Specified by:
setExceptionMessagein interfaceAbstractJobEntity
-
getExceptionByteArrayRef
public ByteArrayRef getExceptionByteArrayRef()
- Specified by:
getExceptionByteArrayRefin interfaceAbstractJobEntity
-
getUtf8Bytes
protected byte[] getUtf8Bytes(java.lang.String str)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-