Salesforce


SUBMITTED BY: Guest

DATE: Jan. 22, 2014, 11:45 a.m.

FORMAT: Text only

SIZE: 732 Bytes

HITS: 4645

  1. global class DF_BatchToExcessFields implements Database.Batchable<sObject>{
  2. public list<String> query = new list<String>();
  3. string str;
  4. global DF_BatchToExcessFields(list<String> lstObjectAsString)
  5. {
  6. query.addAll(lstObjectAsString);
  7. }
  8. global Database.querylocator start(Database.BatchableContext info){
  9. str='select id from account';
  10. return Database.getQueryLocator(str);
  11. }
  12. global void execute(Database.BatchableContext info, List<account> scope){
  13. //scope = new List<String>();
  14. system.debug('+++++++++++query+++++'+query);
  15. }
  16. global void finish(Database.BatchableContext info){
  17. }
  18. }

comments powered by Disqus