BatchableContext Interface

Represents the parameter type of a batch job method and contains the batch job ID. This interface is implemented internally by Apex.

Namespace

Database

See Also

BatchableContext Methods

The following are methods for BatchableContext.

  • getChildJobId()
    Returns the ID of the current batch job chunk that is being processed.
  • getJobId()
    Returns the batch job ID.

getChildJobId()

Returns the ID of the current batch job chunk that is being processed.

Signature

public Id getChildJobId()

Return Value

Type: ID

getJobId()

Returns the batch job ID.

Signature

public Id getJobId()

Return Value

Type: ID