T
- The type of object being processed.public class GetRecordsFromCollectionResponse<T> extends Object
GPUdb.getRecordsFromCollection
.Modifier and Type | Class and Description |
---|---|
static class |
GetRecordsFromCollectionResponse.Info
A set of string constants for the
GetRecordsFromCollectionResponse parameter info . |
Constructor and Description |
---|
GetRecordsFromCollectionResponse()
Constructs a GetRecordsFromCollectionResponse object with default
parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
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.
|
Map<String,String> |
getInfo()
Additional information.
|
List<String> |
getRecordIds()
If the 'return_record_ids' option of the request was 'true', then this
list contains the internal ID for each object.
|
String |
getTableName()
Value of
tableName . |
List<String> |
getTypeNames()
The type IDs of the corresponding records in
data or
recordsJson . |
int |
hashCode() |
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.
|
GetRecordsFromCollectionResponse<T> |
setInfo(Map<String,String> info)
Additional information.
|
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.
|
GetRecordsFromCollectionResponse<T> |
setTableName(String tableName)
Value of
tableName . |
GetRecordsFromCollectionResponse<T> |
setTypeNames(List<String> typeNames)
The type IDs of the corresponding records in
data or
recordsJson . |
String |
toString() |
public GetRecordsFromCollectionResponse()
public String getTableName()
tableName
.tableName
.public GetRecordsFromCollectionResponse<T> setTableName(String tableName)
tableName
.tableName
- The new value for tableName
.this
to mimic the builder pattern.public List<String> getTypeNames()
data
or
recordsJson
. This is useful when tableName
is a heterogeneous collection (collections containing tables
of different types).typeNames
.public GetRecordsFromCollectionResponse<T> setTypeNames(List<String> typeNames)
data
or
recordsJson
. This is useful when tableName
is a heterogeneous collection (collections containing tables
of different types).typeNames
- The new value for typeNames
.this
to mimic the builder pattern.public List<T> getData()
data
.public GetRecordsFromCollectionResponse<T> setData(List<T> data)
data
- The new value for data
.this
to mimic the builder pattern.public List<String> getRecordIds()
recordIds
.public GetRecordsFromCollectionResponse<T> setRecordIds(List<String> recordIds)
recordIds
- The new value for recordIds
.this
to mimic the builder pattern.public Map<String,String> getInfo()
TOTAL_NUMBER_OF_RECORDS
:
Total number of records.
HAS_MORE_RECORDS
: Too many
records. Returned a partial set.
Supported values:
Map
.info
.public GetRecordsFromCollectionResponse<T> setInfo(Map<String,String> info)
TOTAL_NUMBER_OF_RECORDS
:
Total number of records.
HAS_MORE_RECORDS
: Too many
records. Returned a partial set.
Supported values:
Map
.info
- The new value for info
.this
to mimic the builder pattern.Copyright © 2025. All rights reserved.