Skip to content

IF_TableDataSource

Class · Group: Controllers

apex
global interface IF_TableDataSource

Generic Interface for Table data sources

Example

apex
public class AccountTableSource implements IF_TableDataSource
{
    public DTO_BaseTable fetch(Map<String, Object> searchParameters)
    {
        DTO_BaseTable table = new DTO_BaseTable();
        table.addColumn('Name', 'name', 'text', true);
        return table;
    }
}

Methods

MethodDescription
global abstract DTO_BaseTable fetch(Map<String, Object> searchParameters)Table datasource function to be implemented

fetch

apex
global abstract DTO_BaseTable fetch(Map<String, Object> searchParameters)

Table datasource function to be implemented

Parameters

ParameterTypeDescription
searchParametersMapMap of fetch parameters - individual implementations can expect differing parameters.

Returns DTO_BaseTable — Table Response object. Individual implementations must all use the standard response structure.