Package com.veeva.vault.sdk.api.query
Interface QueryExecutionResult
public interface QueryExecutionResult
Represents a single row in
QueryExecutionResponse.-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsField(String fieldName) Retrieves the status of the field on this row.booleancontainsSubquery(String relationshipName) Retrieves the status of the sub-query on this row.Retrieves the List ofQueryRecordPropertyTypes available on this record.getSubqueryResponse(String relationshipName) Returns the results from a nested SELECT-FROM for the specified inbound relationship in a Left Outer Join Query.<T extends QueryRecordPropertyResult>
TgetTypedQueryRecordProperty(Class<T> recordPropertyClass) Retrieves a subclass ofQueryRecordPropertyResult, containing additional metadata about this record and its fields.<T> TRetrieves value of the given field.
-
Method Details
-
containsField
Retrieves the status of the field on this row.- Parameters:
fieldName- name of the field, or the alias if AS clause was used- Returns:
- true if the field exists on this row, otherwise false
-
getValue
Retrieves value of the given field. For formula fields, this is the value after Vault executes the formula expression. The value is returned as the requestedreturnType.- Type Parameters:
T- type of value to return- Parameters:
fieldName- name of the field, or alias if AS clause was usedreturnType- type of value to return- Returns:
- value of given field
-
containsSubquery
Retrieves the status of the sub-query on this row.- Parameters:
relationshipName- relationship name- Returns:
- true if the sub-query exists on this row, otherwise false
-
getSubqueryResponse
Returns the results from a nested SELECT-FROM for the specified inbound relationship in a Left Outer Join Query.- Parameters:
relationshipName- relationship name- Returns:
- nested sub-query response
-
getQueryRecordPropertyTypes
List<QueryRecordPropertyType> getQueryRecordPropertyTypes()Retrieves the List ofQueryRecordPropertyTypes available on this record.- Returns:
- the List of
QueryRecordPropertyTypes available on this record. If none are available, returns an empty List.
-
getTypedQueryRecordProperty
Retrieves a subclass ofQueryRecordPropertyResult, containing additional metadata about this record and its fields.- Returns:
- a subclass of
QueryRecordPropertyResultfor this record
-