BatchJob

public class BatchJob extends MdsEntity implements java.io.Serializable

Class containing all the fields related to a batch job. This is a domain object persisted using MDS.

Author:naveen

Constructors

BatchJob

public BatchJob()

Constructs an instance without setting any fields.

BatchJob

public BatchJob(Integer batchJobStatusId, String jobName)

Constructs a job using the given id and job name.

Parameters:
  • batchJobStatusId – the status ID for the batch job
  • jobName – the name of the job

BatchJob

public BatchJob(Integer batchJobStatusId, String jobName, String cronExpression)

Constructs a job using the given id, job name and cron expression.

Parameters:
  • batchJobStatusId – the status ID for the batch job
  • jobName – the name of the job
  • cronExpression – the cron expression behind this batch job

Methods

getBatchJobStatusId

public Integer getBatchJobStatusId()
Returns:the status ID for the batch job

getCronExpression

public String getCronExpression()
Returns:the cron expression behind this batch job

getJobContent

public Byte[] getJobContent()

Returns the content for the job. This will return a copy of the array from this entity.

Returns:the content for this job, serialized to bytes

getJobName

public String getJobName()
Returns:the name of the job

setBatchJobStatusId

public void setBatchJobStatusId(Integer batchJobStatusId)
Parameters:
  • batchJobStatusId – the status ID for the batch job

setCronExpression

public void setCronExpression(String cronExpression)
Parameters:
  • cronExpression – the cron expression behind this batch job

setJobContent

public void setJobContent(Byte[] jobContent)

Sets the content for the job. This will copy the provided content array.

Parameters:
  • jobContent – the content for this job, serialized to bytes

setJobName

public void setJobName(String jobName)
Parameters:
  • jobName – the name of the job