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

BatchableContext Methods

The following are methods for BatchableContext.

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