Activity Forums Salesforce® Discussions What is database.stateful in salesforce?

  • Shweta

    Member
    August 24, 2020 at 5:11 pm

    Database.stateful: We know that, batch apex is stateless by default. it means for each execution of execute method, you receive a fresh copy of your object. And all fields of the class are initialized, static and instance.

  • Pooja

    Member
    August 24, 2020 at 5:25 pm

    It means for each execution of execute method, you receive a fresh copy of your object. And all fields of the class are initialized, static and instance.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos