Package com.veeva.vault.sdk.api.data
Interface ObjectParentReferenceFieldMetadata
- All Superinterfaces:
ObjectFieldMetadata
Provides methods to retrieve common metadata on parent reference fields.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves whether the parent reference field allows inline create.booleanRetrieve whether the parent reference field allows relationship deep copy.Retrieves theDefaultValueExpressionMetadatacontaining the default value expression of the given parent reference field.Retrieves the inbound relationship label of the given parent reference field.Retrieves the inbound relationship name of the given parent reference field.Retrieves the outbound relationship name of the given parent reference field.Retrieves the referenced object name of the given parent reference field.Retrieves the relationship criteria of the given parent reference field.Retrieves theObjectReferenceFieldMetadataDeleteTypeof the given parent reference field.booleanRetrieve whether the parent reference field has child security enabled.booleanRetrieve whether the parent 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 parent 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 parent reference field.- Returns:
- the inbound relationship label of the field. For example, "inbound label".
-
getInboundRelationshipName
String getInboundRelationshipName()Retrieves the inbound relationship name of the given parent reference field.- Returns:
- the inbound relationship name of the field. For example, "inbound__cr".
-
getOutboundRelationshipName
String getOutboundRelationshipName()Retrieves the outbound relationship name of the given parent reference field.- Returns:
- the outbound relationship name of the field. For example, "outbound__cr".
-
getRelationshipCriteria
String getRelationshipCriteria()Retrieves the relationship criteria of the given parent reference field.- Returns:
- the relationship criteria of the field. For example, "currency__c = {{this.local_currency__c}}".
-
getRelationshipDeleteType
ObjectReferenceFieldMetadataDeleteType getRelationshipDeleteType()Retrieves theObjectReferenceFieldMetadataDeleteTypeof the given parent reference field.- Returns:
- the
ObjectReferenceFieldMetadataDeleteTypetype of the given field if it exists, otherwise null. For example,ObjectReferenceFieldMetadataDeleteType.BLOCK.
-
getReferencedObjectName
String getReferencedObjectName()Retrieves the referenced object name of the given parent reference field.- Returns:
- the referenced object name of the field. For example, "referenced_obj__c".
-
allowInlineCreate
boolean allowInlineCreate()Retrieves whether the parent reference field allows inline create.- Returns:
- true if the field allows inline create, otherwise false
-
isSecureRelationship
boolean isSecureRelationship()Retrieve whether the parent reference field is a secure relationship.- Returns:
- true if the field is a secure relationship, otherwise false
-
allowRelationshipDeepCopy
boolean allowRelationshipDeepCopy()Retrieve whether the parent reference field allows relationship deep copy.- Returns:
- true if the field allows relationship deep copy, otherwise false
-
isReplicateSharingFromParent
boolean isReplicateSharingFromParent()Retrieve whether the parent reference field has child security enabled. In the Vault UI, this configuration option is called "Replicate sharing settings from parent object".- Returns:
- true if the field has child security enabled, otherwise false
-