Skip to content

Data Type Map

When working with Vault field values in the Vault Java SDK, you must map the data type configured in a Vault field to a Java data type in order to manipulate the field value in Java code.

You can learn more about Vault object fields and document fields in Vault Help.

Fields with a non-null format_mask have a UI display value. To get the UI display value of fields, use RecordDisplayService or VQL’s TODISPLAYFORMAT(). For example, Time fields are stored as a String (such as 01:00:00) and displayed in the Vault UI according to the user's locale (such as 1:00 AM or 1:00).

The ValueType interface also provides this mapping.

Vault Field TypeValueTypeReturned Data Type
TextValueType.STRINGString
Yes/NoValueType.BOOLEANBoolean
NumberValueType.NUMBERBigDecimal
DateValueType.DATELocalDate
DateTimeValueType.DATETIMEZonedDateTime
PicklistValueType.PICKLIST_VALUESList<String>
ObjectValueType.STRINGString
ParentValueType.STRINGString
LookupSame as SourceDepends on ValueType
IDValueType.STRINGString
Multi-Value References (Documents only)ValueType.REFERENCESList<String>
CurrencyValueType.NUMBERBigDecimal
LongTextValueType.STRINGString
RichTextValueType.STRINGString
LinkValueType.STRINGString
EmailValueType.STRINGString
PhoneValueType.STRINGString
PercentValueType.NUMBERBigDecimal
TimeValueType.STRINGString