Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
ChildRelationship Class
Namespace
Example
A ChildRelationship object is returned from the sObject describe result using the getChildRelationship method. For example:
1Schema.DescribeSObjectResult R = Account.SObjectType.getDescribe();
2List<Schema.ChildRelationship> C = R.getChildRelationships();ChildRelationship Methods
The following are methods for ChildRelationship. All are instance methods.
getChildSObject()
Signature
public Schema.SObjectType getChildSObject()
Return Value
Type: Schema.SObjectType
getField()
Signature
public Schema.SObjectField getField()
Return Value
Type: Schema.SObjectField
getRelationshipName()
Signature
public String getRelationshipName()
Return Value
Type: String
isCascadeDelete()
Signature
public Boolean isCascadeDelete()
Return Value
Type: Boolean
isDeprecatedAndHidden()
Signature
public Boolean isDeprecatedAndHidden()
Return Value
Type: Boolean
isRestrictedDelete()
Signature
public Boolean isRestrictedDelete()
Return Value
Type: Boolean