None of the methods take an argument.
The following are methods for DescribeSObjectResult. All are instance methods.
public Schema.SObjectTypeFields fields()
Type: The return value is a special data type. See the example to learn how to use fields.
Schema.DescribeFieldResult dfr = Schema.SObjectType.Account.fields.Name;
To get a custom field name, specify the custom field name.
public Schema.SObjectTypeFields fieldSets()
Type: The return value is a special data type. See the example to learn how to use fieldSets.
public Schema.ChildRelationship getChildRelationships()
Type: List<Schema.ChildRelationship>
For example, the Account object includes Contacts and Opportunities as child relationships.
public String getDefaultImplementation()
Type: String
public Boolean getHasSubtypes()
Type: Boolean
public String getImplementsInterfaces()
Type: String
public String getKeyPrefix()
Type: String
The DescribeSobjectResult object returns a value for objects that have a stable prefix. For object types that do not have a stable or predictable prefix, this field is blank. Client applications that rely on these codes can use this way of determining object type to ensure forward compatibility.
public String getLabel()
Type: String
The object's label might not always match the object name. For example, an organization in the medical industry might change the label for Account to Patient. This label is then used in the Salesforce user interface. See the Salesforce online help for more information.
public String getLabelPlural()
Type: String
The object's plural label might not always match the object name. For example, an organization in the medical industry might change the plural label for Account to Patients. This label is then used in the Salesforce user interface. See the Salesforce online help for more information.
public String getLocalName()
Type: String
public List<Schema.RecordTypeInfo> getRecordTypeInfos()
Type: List<Schema.RecordTypeInfo>
public Map<String, Schema.RecordTypeInfo> getRecordTypeInfosByDeveloperName()
Type: Map<String, Schema.RecordTypeInfo>
public Schema.RecordTypeInfo getRecordTypeInfosById()
Type: Map<ID, Schema.RecordTypeInfo>
public Schema.RecordTypeInfo getRecordTypeInfosByName()
Type: Map<String, Schema.RecordTypeInfo>
public Schema.SObjectDescribeOptions getSObjectDescribeOption()
Type: Schema.SObjectDescribeOptions
public Schema.SObjectType getSobjectType()
Type: Schema.SObjectType
public Boolean isAccessible()
Type: Boolean
public Boolean isCreateable()
Type: Boolean
public Boolean isCustom()
Type: Boolean
public Boolean isCustomSetting()
Type: Boolean
public Boolean isDeletable()
Type: Boolean
public Boolean isDeprecatedAndHidden()
Type: Boolean
public Boolean isFeedEnabled()
Type: Boolean
public Boolean isMergeable()
Type: Boolean
public Boolean isMruEnabled()
Type: Boolean
public Boolean isQueryable()
Type: Boolean
public Boolean isSearchable()
Type: Boolean
public Boolean isUndeletable()
Type: Boolean
public Boolean isUpdateable()
Type: Boolean