Override Default Batchable Interface

Issue #2346 resolved
Dan Beer created an issue

By default, the Batchable interface implements the start method returning iterable<SObject>.

Please can we override to the more commonly used Database.QueryLocator?

Comments (4)

  1. Scott Wells repo owner

    Committed for the next build. When implementing Database.Batchable using raw SObject as the type parameter, both return type signatures of start are included if start is unimplemented:

    Of course, you should only select one of the two signatures, though IC2 will show an error if you choose both and end up with conflicting signatures in the resulting class.

  2. Log in to comment