global class Batchif_Attachment501Batch implements Database.Batchable { public String query; global Batchif_Attachment501Batch() { this.query = query; } global Database.QueryLocator start(Database.BatchableContext bc) { return Database.getQueryLocator(query); } global void execute(Database.BatchableContext BC, list scope) { } global void finish(Database.BatchableContext BC) { } }