Package com.veeva.vault.sdk.api.data
Interface ObjectReferenceFieldMetadata
- All Superinterfaces:
ObjectFieldMetadata
Provides methods to retrieve common metadata on reference fields.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves whether the reference field allows inline create.Retrieves the controlling field of the given reference field.Retrieves theDefaultValueExpressionMetadatacontaining the default value expression of the given object reference field.Retrieves the inbound relationship label of the given reference field.Retrieves the inbound relationship name of the given reference field.Retrieves the outbound relationship name of the given reference field.Retrieves the referenced object name of the given reference field.Retrieves the relationship criteria of the given reference field.Retrieves theObjectReferenceFieldMetadataDeleteTypeof the given reference field.booleanRetrieves whether the given reference field has a controlling field.booleanRetrieves whether this object reference field will pre-default values (auto-populate values that users can clear or edit before saving) when only one reference record is available.booleanRetrieves whether the reference field is a secure relationship.Methods inherited from interface com.veeva.vault.sdk.api.data.ObjectFieldMetadata
getCreatedByUserId, getCreatedDate, getDescription, getHelpContent, getLabel, getModifiedByUserId, getModifiedDate, getName, getObjectFieldMetadataType, getObjectName, getOrder, getSourceType, getTypedObjectFieldMetadata, getValueType, isActive, isCopyField, isEditable, isEncrypted, isFacetable, isListColumn, isRequired, isUnique
-
Method Details
-
getDefaultValueExpression
DefaultValueExpressionMetadata getDefaultValueExpression()Retrieves theDefaultValueExpressionMetadatacontaining the default value expression of the given object reference field.- Returns:
- a
DefaultValueExpressionMetadatawith a default value expression if it exists, otherwise null
-
getInboundRelationshipLabel
String getInboundRelationshipLabel()Retrieves the inbound relationship label of the given reference field. For example,inbound label.- Returns:
- the inbound relationship label of the field
-
getInboundRelationshipName
String getInboundRelationshipName()Retrieves the inbound relationship name of the given reference field. For example,inbound__cr.- Returns:
- the inbound relationship name of the field
-
getOutboundRelationshipName
String getOutboundRelationshipName()Retrieves the outbound relationship name of the given reference field. For example,outbound__cr.- Returns:
- the outbound relationship name of the field
-
getRelationshipCriteria
String getRelationshipCriteria()Retrieves the relationship criteria of the given reference field. For example,currency__c = {{this.local_currency__c}}.- Returns:
- the relationship criteria of the field
-
getRelationshipDeleteType
ObjectReferenceFieldMetadataDeleteType getRelationshipDeleteType()Retrieves theObjectReferenceFieldMetadataDeleteTypeof the given reference field. For example,ObjectReferenceFieldMetadataDeleteType.BLOCK.- Returns:
- the
ObjectReferenceFieldMetadataDeleteTypetype of the given field if it exists, otherwise null
-
getReferencedObjectName
String getReferencedObjectName()Retrieves the referenced object name of the given reference field. For example,referenced_obj__c.- Returns:
- the referenced object name of the field
-
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. For example,controlling_field__c.- Returns:
- the name of the field's controlling field
-
allowInlineCreate
boolean allowInlineCreate()Retrieves whether the reference field allows inline create.- Returns:
- true if the field allows inline create, otherwise false
-
isSecureRelationship
boolean isSecureRelationship()Retrieves whether the reference field is a secure relationship.- Returns:
- true if the field is a secure relationship, otherwise false
-
isPreDefaultReference
boolean isPreDefaultReference()Retrieves whether this object reference field will pre-default values (auto-populate values that users can clear or edit before saving) when only one reference record is available. Can only be used if the field is not required.This behavior only applies when creating or copying records on the object record details page.
- Returns:
- true if this object reference field will pre-default values, otherwise false
-