# IF_TableDataSource

**Class** · Group: `Controllers`

<div class="apex-member apex-class">

```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;
    }
}
```

</div>

---

## Methods

| Method | Description |
|--------|-------------|
| global abstract [DTO_BaseTable](/reference/apex/dto-basetable) [fetch](#fetch)([Map](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_map.htm)<[String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm), [Object](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_System_Object.htm)> searchParameters) | Table datasource function to be implemented |

### fetch

<div class="apex-member">

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

Table datasource function to be implemented

**Parameters**

| Parameter | Type | Description |
|-----------|------|-------------|
| `searchParameters` | [Map](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_map.htm) | Map of fetch parameters - individual implementations can expect differing parameters. |

**Returns** [DTO_BaseTable](/reference/apex/dto-basetable) — Table Response object. Individual implementations must all use the standard response structure.

</div>
