BatchableContext Interface

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

Database

See Also

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.

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

public Id getChildJobId()

Type: ID

Returns the batch job ID.

public Id getJobId()

Type: ID