![]() ![]() Any change to the value of the childAttributeName attribute in child component has no effect on the value of Global class m圜lass implements Database.Batchable, Database.Stateful" is a Unbound expression. By implementingĭatabase.Stateful we can maintain state after transaction is over and can store previous values. Suppose we have 600 jobs and there are total 200 records to be proceeds in each transaction,so i f we want to count records as batch proceeds maintaining state is important as after 200 set of records new transaction will start and members will loose their values. Only instance variable hold values static members does not hold values. If we implements Database.Stateful we can maintained state across transactions. 4)If the batch is executed without the optional scope parameter and If in batch apex suppose we have 600 jobs and there are total 200 records to be proceeds in each transaction,so in total we have 3 transaction.If first transaction succeeds but second fails so in this case the records update done in first transaction are rolled back or not?ĥ)When to use Database.Stateful in batch apex?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |