Skip to content

IF_TableDataSource

Class · Group: Controllers

apex
global interface IF_TableDataSource

Generic Interface for Table data sources

Since: 1.0

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

Method Details

fetch

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

Table datasource function to be implemented

Parameters:

  • searchParameters (Map) - Map of fetch parameters - individual implementations can expect differing parameters.

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

Since: 1.0