Class AbstractJobEntityImpl
java.lang.Object
org.activiti.engine.impl.persistence.entity.AbstractEntity
org.activiti.engine.impl.persistence.entity.AbstractJobEntityImpl
- All Implemented Interfaces:
Serializable,BulkDeleteable,HasRevision,AbstractJobEntity,Entity,Job
- Direct Known Subclasses:
DeadLetterJobEntityImpl,JobEntityImpl,SuspendedJobEntityImpl,TimerJobEntityImpl
public abstract class AbstractJobEntityImpl
extends AbstractEntity
implements AbstractJobEntity, BulkDeleteable, Serializable
Abstract job entity class.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Dateprotected Dateprotected ByteArrayRefprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected Stringprotected intprotected Stringprotected Stringprotected Stringprotected intprotected StringFields inherited from class org.activiti.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, revisionFields inherited from interface org.activiti.engine.runtime.Job
DEFAULT_EXCLUSIVE, JOB_TYPE_MESSAGE, JOB_TYPE_TIMER, MAX_EXCEPTION_MESSAGE_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the date on which this job is supposed to be processed.Returns the message of the exception that occurred, the last time the job was executed.Returns the specific execution on which the job was created.Get the job configuration.Get the job handler type.Get the job type for this job.intReturns a representation of the object, as would be stored in the database.Returns the specific process definition on which the job was createdReturns the id of the process instance which execution created the job.intReturns the number of retries this job has left.Get the tenant identifier for this job.protected byte[]getUtf8Bytes(String str) booleanIs the job exclusive?voidsetDuedate(Date duedate) voidsetEndDate(Date endDate) voidsetExceptionMessage(String exceptionMessage) voidsetExceptionStacktrace(String exception) voidsetExclusive(boolean isExclusive) voidsetExecution(ExecutionEntity execution) voidsetExecutionId(String executionId) voidsetJobHandlerConfiguration(String jobHandlerConfiguration) voidsetJobHandlerType(String jobHandlerType) voidsetJobType(String jobType) voidsetMaxIterations(int maxIterations) voidsetProcessDefinitionId(String processDefinitionId) voidsetProcessInstanceId(String processInstanceId) voidvoidsetRetries(int retries) voidsetTenantId(String tenantId) toString()Methods inherited from class org.activiti.engine.impl.persistence.entity.AbstractEntity
getId, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setRevision, setUpdatedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.activiti.engine.impl.persistence.entity.Entity
getId, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setUpdatedMethods inherited from interface org.activiti.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
-
Field Details
-
duedate
-
executionId
-
processInstanceId
-
processDefinitionId
-
isExclusive
protected boolean isExclusive -
retries
protected int retries -
maxIterations
protected int maxIterations -
repeat
-
endDate
-
jobHandlerType
-
jobHandlerConfiguration
-
exceptionByteArrayRef
-
exceptionMessage
-
tenantId
-
jobType
-
-
Constructor Details
-
AbstractJobEntityImpl
public AbstractJobEntityImpl()
-
-
Method Details
-
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
- Specified by:
setExecutionin interfaceAbstractJobEntity
-
getDuedate
Description copied from interface:JobReturns the date on which this job is supposed to be processed.- Specified by:
getDuedatein interfaceJob
-
setDuedate
- Specified by:
setDuedatein interfaceAbstractJobEntity
-
getExecutionId
Description copied from interface:JobReturns the specific execution on which the job was created.- Specified by:
getExecutionIdin interfaceJob
-
setExecutionId
- 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
Description copied from interface:JobReturns the id of the process instance which execution created the job.- Specified by:
getProcessInstanceIdin interfaceJob
-
setProcessInstanceId
- 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
Description copied from interface:JobReturns the specific process definition on which the job was created- Specified by:
getProcessDefinitionIdin interfaceJob
-
setProcessDefinitionId
- Specified by:
setProcessDefinitionIdin interfaceAbstractJobEntity
-
getRepeat
- Specified by:
getRepeatin interfaceAbstractJobEntity
-
setRepeat
- Specified by:
setRepeatin interfaceAbstractJobEntity
-
getEndDate
- Specified by:
getEndDatein interfaceAbstractJobEntity
-
setEndDate
- Specified by:
setEndDatein interfaceAbstractJobEntity
-
getMaxIterations
public int getMaxIterations()- Specified by:
getMaxIterationsin interfaceAbstractJobEntity
-
setMaxIterations
public void setMaxIterations(int maxIterations) - Specified by:
setMaxIterationsin interfaceAbstractJobEntity
-
getJobHandlerType
Description copied from interface:JobGet the job handler type.- Specified by:
getJobHandlerTypein interfaceAbstractJobEntity- Specified by:
getJobHandlerTypein interfaceJob
-
setJobHandlerType
- Specified by:
setJobHandlerTypein interfaceAbstractJobEntity
-
getJobHandlerConfiguration
Description copied from interface:JobGet the job configuration.- Specified by:
getJobHandlerConfigurationin interfaceAbstractJobEntity- Specified by:
getJobHandlerConfigurationin interfaceJob
-
setJobHandlerConfiguration
- Specified by:
setJobHandlerConfigurationin interfaceAbstractJobEntity
-
getJobType
Description copied from interface:JobGet the job type for this job.- Specified by:
getJobTypein interfaceAbstractJobEntity- Specified by:
getJobTypein interfaceJob
-
setJobType
- Specified by:
setJobTypein interfaceAbstractJobEntity
-
getTenantId
Description copied from interface:JobGet the tenant identifier for this job.- Specified by:
getTenantIdin interfaceJob
-
setTenantId
- Specified by:
setTenantIdin interfaceAbstractJobEntity
-
getExceptionStacktrace
- Specified by:
getExceptionStacktracein interfaceAbstractJobEntity
-
setExceptionStacktrace
- Specified by:
setExceptionStacktracein interfaceAbstractJobEntity
-
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
- Specified by:
setExceptionMessagein interfaceAbstractJobEntity
-
getExceptionByteArrayRef
- Specified by:
getExceptionByteArrayRefin interfaceAbstractJobEntity
-
getUtf8Bytes
-
toString
-