Advertisement
Guest User

Untitled

a guest
Jun 18th, 2012
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1.  
  2. global void execute(Database.BatchableContext BC, List<Contact> myContacts){
  3. List<Id> contactIds = new List<Id>();
  4. for (contact c: myContacts){
  5. contactIds.add(c.id);
  6. }
  7. List <contact> lockedContacts = [select id, f1, f2 from Contact where id in :contactIds FOR UPDATE];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement