Package com.veeva.vault.sdk.api.document
Interface DocumentObjectReferenceFieldMetadata
- All Superinterfaces:
DocumentFieldMetadata
Provides methods to retrieve metadata specific to and shared by all Object Reference fields.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the controlling field of the given reference field if applicable.Retrieves the VQL relationship criteria expressions constraining the given reference field.Retrieves the referenced object name of the given object reference field.booleanRetrieves whether the given reference field has a controlling field.booleanRetrieves whether the given reference field is a multi-value field.booleanRetrieves whether the reference field supports relationship security.Methods inherited from interface com.veeva.vault.sdk.api.document.DocumentFieldMetadata
getDocumentFieldMetadataType, getHelpContent, getLabel, getName, getSourceType, getTypedDocumentFieldMetadata, getValueType, isActive, isCopyField, isEditable, isFacetable, isQueryable, isRequired, isShared, isVisible
-
Method Details
-
getReferencedObjectName
String getReferencedObjectName()Retrieves the referenced object name of the given object reference field. For example,referenced_obj__c.- Returns:
- the referenced object name of the field
-
isMultiValue
boolean isMultiValue()Retrieves whether the given reference field is a multi-value field.- Returns:
- true if the field is a multi-value field, otherwise false
-
hasControllingField
boolean hasControllingField()Retrieves whether the given reference field has a controlling field.- Returns:
- true if the field has a controlling field, otherwise false
-
getControllingField
String getControllingField()Retrieves the controlling field of the given reference field if applicable. For example,controlling_field__c. This method will returnnullwhenhasControllingField()is false.- Returns:
- the name of the field's controlling field
-
getDocumentRelationshipCriteriaExpressions
List<DocumentRelationshipCriteriaExpressionMetadata> getDocumentRelationshipCriteriaExpressions()Retrieves the VQL relationship criteria expressions constraining the given reference field. For example,currency__c = {{this.local_currency__c}}.- Returns:
- the list of relationship criteria expressions of the field
-
isSecureRelationship
boolean isSecureRelationship()Retrieves whether the reference field supports relationship security.- Returns:
- true if the field supports secure relationships, otherwise false
-