Class GetRecordsFromCollectionResponse<T>

  • Type Parameters:
    T - The type of object being processed.

    public class GetRecordsFromCollectionResponse<T>
    extends Object
    A set of results returned by GPUdb.getRecordsFromCollection.
    • Constructor Detail

      • GetRecordsFromCollectionResponse

        public GetRecordsFromCollectionResponse()
        Constructs a GetRecordsFromCollectionResponse object with default parameters.
    • Method Detail

      • getTableName

        public String getTableName()
        Value of tableName.
        Returns:
        The current value of tableName.
      • getTypeNames

        public List<String> getTypeNames()
        The type IDs of the corresponding records in data or recordsJson. This is useful when tableName is a heterogeneous collection (collections containing tables of different types).
        Returns:
        The current value of typeNames.
      • setTypeNames

        public GetRecordsFromCollectionResponse<T> setTypeNames​(List<String> typeNames)
        The type IDs of the corresponding records in data or recordsJson. This is useful when tableName is a heterogeneous collection (collections containing tables of different types).
        Parameters:
        typeNames - The new value for typeNames.
        Returns:
        this to mimic the builder pattern.
      • getData

        public List<T> getData()
        If the encoding parameter of the request was 'binary' then this list contains the binary encoded records retrieved from the table/collection. Otherwise, empty list.
        Returns:
        The current value of data.
      • setData

        public GetRecordsFromCollectionResponse<T> setData​(List<T> data)
        If the encoding parameter of the request was 'binary' then this list contains the binary encoded records retrieved from the table/collection. Otherwise, empty list.
        Parameters:
        data - The new value for data.
        Returns:
        this to mimic the builder pattern.
      • getRecordIds

        public List<String> getRecordIds()
        If the 'return_record_ids' option of the request was 'true', then this list contains the internal ID for each object. Otherwise it will be empty.
        Returns:
        The current value of recordIds.
      • setRecordIds

        public GetRecordsFromCollectionResponse<T> setRecordIds​(List<String> recordIds)
        If the 'return_record_ids' option of the request was 'true', then this list contains the internal ID for each object. Otherwise it will be empty.
        Parameters:
        recordIds - The new value for recordIds.
        Returns:
        this to mimic the builder pattern.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object