摘要:
public static Schema.SObjectType getSobjectTypeByPrefix( String SObjectPrefix ){ for( Schema.SObjectType ot : Schema.getGlobalDescribe().values() ){ String keyPrefix = (String)ot.getDescribe().getKeyPrefix(); if( keyPrefix != null && keyPrefix.equals( SObjectPrefix ) ){ r... 阅读全文