function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
$Abhi$$Abhi$ 

User Context for batchable classes

Hi,

 

I have a APEX class that implements the Database.batchable Interface.As per my knowledge the batch jobs run in system context, and are not limited by the sharing rules.

I wanted to know that, if a class implements the Database.batchable Interface then, is the constructor of this class run in system context or or not.

Any pointers on the same would be of great help.

 

Thanks

crop1645crop1645

Refer to the Apex Developer's Guide - section entitled "Using the with sharing or without sharing Keywords" for a full discussion of this topic