Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<Contact> conLIST = [Select Id From Contact LIMIT 10];
- Set<Id> conIds = TMNL_SOQL_Util.getIdSet(conLIST);
- conLIST = TMNL_SOQL_Util.getRecords( conIds );
- //system.debug(LoggingLevel.INFO,'\n\n\nContact 0 \n'+JSON.serializePretty(conLIST[0])+'\n');
- Set<Id> parentAccounts = TMNL_SOQL_Util.getParentIds(conLIST,'AccountId');
- //system.debug(LoggingLevel.INFO,'\n\n\nParent Ids\n'+JSON.serializePretty(parentAccounts) );
- //Map<Id,sObject> accMap = TMNL_SOQL_Util.getCachedMap(parentAccounts) ;
- TMNL_SOQL_Util.getCachedMap(parentAccounts) ;
- //List<Account> accList = (List<Account>) accMap.values();
- //Map<Id,Account> accMap2 = Map<Id,Account>( accList );
- //ystem.debug(LoggingLevel.INFO,'\n\n\nAccMap\n'+JSON.serializePretty(accMap) );
- Account acc0 = (Account) TMNL_SOQL_Util.getCached(conLIST[0].AccountId);
- //acc0 = (Account) TMNL_SOQL_Util.getCached(con[0].AccountId);
- //acc0 = (Account) TMNL_SOQL_Util.getCached(con[0].AccountId);
- //acc0 = (Account) TMNL_SOQL_Util.getCached(con[0].AccountId);
- //acc0 = (Account) TMNL_SOQL_Util.getCached(con[0].AccountId);
- //acc0 = (Account) TMNL_SOQL_Util.getCached(con[0].AccountId);
- system.debug(LoggingLevel.INFO,'\n\n\nAcc 0\n'+JSON.serializePretty(acc0) );
- //system.debug(LoggingLevel.INFO,'\n\n\nTEST1\n'+acc1);
- //system.debug(LoggingLevel.INFO,'\n\n\nTEST2\n'+acc2);
- if ( TMNL_SOQL_Util.inCache(so.Id) ) TMNL_SOQL_Util.cache(Trigger.newMap.get(so.Id));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement