# BaseDAO.class.php

Go to the documentation of this file.

    00001 <?php
    00002 /***************************************************************************
    00003  *   Copyright (C) 2005-2008 by Konstantin V. Arkhipov                     *
    00004  *                                                                         *
    00005  *   This program is free software; you can redistribute it and/or modify  *
    00006  *   it under the terms of the GNU Lesser General Public License as        *
    00007  *   published by the Free Software Foundation; either version 3 of the    *
    00008  *   License, or (at your option) any later version.                       *
    00009  *                                                                         *
    00010  ***************************************************************************/
    00011
    00015     interface BaseDAO
    00016     {
    00018
    00019         public function getById($id);
    00020         public function getByLogic(LogicalObject $logic);
    00021         public function getByQuery(SelectQuery $query);
    00022         public function getCustom(SelectQuery $query);
    00024
    00026
    00027         public function getListByIds(array $ids);
    00028         public function getListByQuery(SelectQuery $query);
    00029         public function getListByLogic(LogicalObject $logic);
    00030         public function getPlainList();
    00032
    00034
    00035         public function getCustomList(SelectQuery $query);
    00036         public function getCustomRowList(SelectQuery $query);
    00038
    00040
    00041         public function getQueryResult(SelectQuery $query);
    00043
    00045
    00046         public function drop(Identifiable $object);
    00047         public function dropById($id);
    00048         public function dropByIds(array $ids);
    00050
    00052
    00053         public function uncacheById($id);
    00054         public function uncacheByIds($ids);
    00055         public function uncacheLists();
    00057     }
    00058 ?>