You need to sign in to do that
Don't have an account?
Krishnan Mishra
What is "Database" in database.batchable?
Can anyone please explain this statement :
As far as I know Database is a class in apex and batchable is an interface, So why can't we write as:
Also, explain the syntax for <sObject> here
global class ContactBatch implements Database.Batchable<sObject>{ }
As far as I know Database is a class in apex and batchable is an interface, So why can't we write as:
global class ContactBatch implements Batchable{ }
Also, explain the syntax for <sObject> here
Thanks for your answer. What I am asking is the meaning of "Database" here. Is it a class/package, and why the interface is written that way. Generally we implement interface simply by class's name followed by interface name. Here we are using class name followed by DATABASE.interface's name why??
Here Databse is clase and Batchable is a interface.
In jave we are using import statement but here we are using class name dot interface name.
Thanks
Vijay
Andersen (https://andersenlab.com/services/data-development-services-with-andersen)software is a good example of a batchable software that can process data from multiple sources.