Package com.veeva.vault.sdk.api.data
Interface ObjectLookupFieldMetadata
- All Superinterfaces:
ObjectFieldMetadata
Provides methods to retrieve common metadata on lookup fields.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves theObjectLookupFieldTypeof the given lookup field.<T extends ObjectLookupFieldTypeMetadata>
TgetLookupTypeMetadata(Class<T> lookupMetadataClass) Retrieves a subclass ofObjectLookupFieldTypeMetadataso you can fetch the lookup type field attributes of the given formula field.Retrieves the name of the relationship to the source object of the given lookup field.Retrieves the source field of the given lookup field.Retrieves the source object of the given lookup field.booleanRetrieves whether the given lookup field is searchable.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
-
getRelationshipName
String getRelationshipName()Retrieves the name of the relationship to the source object of the given lookup field.- Returns:
- the name of the relationship to the source object. For example, "to_lookup_source__cr".
-
getSourceField
String getSourceField()Retrieves the source field of the given lookup field.- Returns:
- the source field that this field is looking up. For example, "source_field__c".
-
getSourceObjectName
String getSourceObjectName()Retrieves the source object of the given lookup field.- Returns:
- the source object that this field is looking up. For example, "source_object__c".
-
getLookupFieldType
ObjectLookupFieldType getLookupFieldType()Retrieves theObjectLookupFieldTypeof the given lookup field.- Returns:
- the
ObjectLookupFieldTypeof the field. For example,ObjectLookupFieldType.TEXT.
-
isSearchable
boolean isSearchable()Retrieves whether the given lookup field is searchable.- Returns:
- true if the given field is searchable, otherwise false
-
getLookupTypeMetadata
Retrieves a subclass ofObjectLookupFieldTypeMetadataso you can fetch the lookup type field attributes of the given formula field.- Parameters:
lookupMetadataClass- a subclass ofObjectLookupFieldTypeMetadata. For example, ObjectLookupTextFieldMetadata.class.- Returns:
- A subclass of
ObjectLookupFieldTypeMetadataof the field. For example,ObjectLookupTextFieldMetadata.
-