3 namespace DataAccess\DataMapper
;
5 use Domain\Entities\IDivineEntity
;
9 //TODO: Table is the wrong name. We actually give the implementation the entity name and it finds the table from the maps.
11 //find in table based on criteria in queryString
12 public function find($entityName, $queryString);
13 //find id in table and return it as an entity
14 public function findById($id, $entityName);
15 //find rows with id >= id and stop at limit
16 public function findRange($id, $entityName, $limit);
17 //insert/update entity in table
18 public function save(IDivineEntity
$entity);
19 //remove entity from table
20 public function remove(IDivineEntity
$entity);