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
naresh singhalnaresh singhal 

What is the purpose of using <sobject> in Database.Batchable<sobject> ?

AshlekhAshlekh
Hi,

sObject is genreic data type to hold any type of custom or standard object.

And when you want to returrn QueryLocator then we implement this.

-thanks
Ashlekh Gera
 
naresh singhalnaresh singhal
@Ashlek: Is it playing the role of return type here? , I have more doubt on reason of placing it after the interface name , We generally dont write anything at that place.  I understand that we define collections using '< >' Why it is used in return type?