Interface: DataMapping
Signature:
interface DataMapping <K, D, Kin, Din>
DataMapping
- Version:
- Since:
- Module:
Module usage
See JET Module Loading for an overview of module usage within JET.
Typescript Import Format
//To use this interface, import as below.
import {DataMapping} from "ojs/ojdataprovider";
Generic Parameters
| Parameter | Description |
|---|
| K | Type of output key |
| D | Type of output data |
| Kin | Type of input key |
| Din | Type of input data |
JET In Typescript
A detailed description of working with JET elements and classes in your typescript project can be found at:
JET Typescript Usage.
Fields
-
mapFields :(item: Item<Kin, Din>) => Item<K, D>
-
Field mapping function which takes an item and returns the mapped item
-
(nullable) mapFilterCriterion :(filterCriterion: DataFilter.Filter<D>) => DataFilter.Filter<Din>
-
Optional FilterCriterion mapping function which takes filterOperator and returns the mapped filterOperator
-
(nullable) mapSortCriteria :(sortCriteria: Array<SortCriterion<D>>) => Array<SortCriterion<Din>>
-
Optional SortCriterion mapping function which takes sortCriteria and returns the mapped sortCriteria
-
(nullable) unmapFilterCriterion :(filterCriterion: DataFilter.Filter<Din>) => DataFilter.Filter<D>
-
Optional FilterCriterion unmapping function which takes a mapped filterOperator and returns the unmapped filterOperator
-
(nullable) unmapSortCriteria :(sortCriteria: Array<SortCriterion<Din>>) => Array<SortCriterion<D>>
-
Optional SortCriterion unmapping function which takes mapped sortCriteria and returns the unmapped sortCriteria