# IMapper

interface IMapper

Generic mapper interface

## Methods

boolean
save(DataModel $model)

Save

boolean
delete(DataModel $model)

Delete

stdClass
fetchRow(array $kvs = null)

Fetching a single Row

multiple:
fetchRows(array $kvs = null)

Fetching multiple Rows

multiple:
fetchAll(QueryFilter $filter = null)

Fetching multiple Rows

integer
fetchCount(QueryFilter $filter = null)

Fetching a single count

## Details

###
at line 24
`boolean save(DataModel $model)`

Save

#### Parameters

DataModel | $model |

#### Return Value

boolean |

###
at line 32
`boolean delete(DataModel $model)`

Delete

#### Parameters

DataModel | $model |

#### Return Value

boolean |

###
at line 40
`stdClass fetchRow(array $kvs = null)`

Fetching a single Row

#### Parameters

array | $kvs |

#### Return Value

stdClass |

###
at line 48
`multiple: fetchRows(array $kvs = null)`

Fetching multiple Rows

#### Parameters

array | $kvs |

#### Return Value

multiple: | \stdClass

###
at line 56
`multiple: fetchAll(QueryFilter $filter = null)`

Fetching multiple Rows

#### Parameters

QueryFilter | $filter |

#### Return Value

multiple: | \stdClass

###
at line 64
`integer fetchCount(QueryFilter $filter = null)`

Fetching a single count

#### Parameters

QueryFilter | $filter |

#### Return Value

integer |