Get Interface Class List from SOQL

ApexTypeImplementor Object: Get the list of all classes which implement a particular interface with the help of ApexTypeImplementor object.


List<ApexTypeImplementor> lstofbatchclass =[SELECT Id,ClassName FROM ApexTypeImplementor WHERE InterfaceName = 'Batchable'];



https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_apextypeimplementor.htm

Comments

Popular Post

How to use Comparable Interface in Salesforce

Copy Billing Address to Shipping Address on VF Page Using JavaScript

Get list of Key Prefix of Sobject in Salesforce