Interface QueryExecutionResult


public interface QueryExecutionResult
Represents a single row in QueryExecutionResponse.
  • Method Details

    • containsField

      boolean containsField(String fieldName)
      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

      <T> T getValue(String fieldName, ValueType<T> returnType)
      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 requested returnType.
      Type Parameters:
      T - type of value to return
      Parameters:
      fieldName - name of the field, or alias if AS clause was used
      returnType - type of value to return
      Returns:
      value of given field
    • containsSubquery

      boolean containsSubquery(String relationshipName)
      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

      QueryExecutionResponse getSubqueryResponse(String relationshipName)
      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 of QueryRecordPropertyTypes available on this record.
      Returns:
      the List of QueryRecordPropertyTypes available on this record. If none are available, returns an empty List.
    • getTypedQueryRecordProperty

      <T extends QueryRecordPropertyResult> T getTypedQueryRecordProperty(Class<T> recordPropertyClass)
      Retrieves a subclass of QueryRecordPropertyResult, containing additional metadata about this record and its fields.
      Returns:
      a subclass of QueryRecordPropertyResult for this record