TableResult Class
Namespace
TableResult Properties
The following are properties for TableResult.
queryMoreToken
Signature
public String queryMoreToken {get; set;}
Property Value
Type: String
success
Signature
public Boolean success {get; set;}
Property Value
Type: Boolean
totalSize
Signature
public Integer totalSize {get; set;}
Property Value
Type: Integer
TableResult Methods
The following are methods for TableResult.
error(errorMessage)
Signature
public static DataSource.TableResult error(String errorMessage)
Parameters
- errorMessage
- Type: String
- errorMessage
Return Value
Type: DataSource.TableResult
| Property | Value |
|---|---|
| success | false |
| errorMessage | errorMessage |
| tableName | null |
| rows | null |
| rows.size() | 0 |
get(success, errorMessage, tableName, rows, totalSize)
Signature
public static DataSource.TableResult get(Boolean success, String errorMessage, String tableName, List<Map<String,Object>> rows, Integer totalSize)
Parameters
- success
- Type: Boolean
- Whether the search or query was successful.
- errorMessage
- Type: String
- errorMessage
- tableName
- Type: String
- Name of the table that was queried.
- rows
- Type: List<Map<String, Object>>
- Rows of data.
- totalSize
- Type: Integer
- The total number of rows that meet the query criteria, even when the external system is requested to return a smaller batch size.
Return Value
Type: DataSource.TableResult
get(success, errorMessage, tableName, rows)
Signature
public static DataSource.TableResult get(Boolean success, String errorMessage, String tableName, List<Map<String,Object>> rows)
Parameters
Return Value
Type: DataSource.TableResult
get(queryContext, rows)
Signature
public static DataSource.TableResult get(DataSource.QueryContext queryContext, List<Map<String,Object>> rows)
Parameters
- queryContext
- Type: DataSource.QueryContext
- Represents the query to run against a data table.
- rows
- Type: List<Map<String, Object>>
- Rows of data.
Return Value
Type: DataSource.TableResult
get(tableSelection, rows)
Signature
public static DataSource.TableResult get(DataSource.TableSelection tableSelection, List<Map<String,Object>> rows)
Parameters
- tableSelection
- Type: DataSource.TableSelection
- Query details that represent the FROM, ORDER BY, SELECT, and WHERE clauses in a SOQL or SOSL query.
- rows
- Type: List<Map<String, Object>>
- Rows of data.
Return Value
Type: DataSource.TableResult