BaseDAO.class.php

Go to the documentation of this file.
00001 <?php
00002 /***************************************************************************
00003  *   Copyright (C) 2005-2007 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 /* $Id: BaseDAO.class.php 4687 2007-12-09 18:57:18Z voxus $ */
00012 
00016     interface BaseDAO
00017     {
00019 
00020         public function get(ObjectQuery $oq);
00021         public function getById($id);
00022         public function getByLogic(LogicalObject $logic);
00023         public function getByQuery(SelectQuery $query);
00024         public function getCustom(SelectQuery $query);
00026         
00028 
00029         public function getList(ObjectQuery $oq);
00030         public function getListByIds($ids);
00031         public function getListByQuery(SelectQuery $query);
00032         public function getListByLogic(LogicalObject $logic);
00033         public function getPlainList();
00035         
00037 
00038         public function getCustomList(SelectQuery $query);
00039         public function getCustomRowList(SelectQuery $query);
00041 
00043 
00044         public function getCountedList(ObjectQuery $oq);
00045         public function getQueryResult(SelectQuery $query);
00047         
00049 
00050         public function getCachedById($id);
00051         public function getCachedByQuery(SelectQuery $query);
00053         
00055 
00056         public function drop(Identifiable $object);
00057         public function dropById($id);
00058         public function dropByIds(/* array */ $ids);
00060         
00062 
00063         public function cacheById(Identifiable $object);
00064         public function cacheByQuery(
00065             SelectQuery $query, /* Identifiable */ $object
00066         );
00067         public function cacheListByQuery(SelectQuery $query, /* array */ $array);
00069         
00071 
00072         public function uncacheById($id);
00073         public function uncacheByIds($ids);
00074         public function uncacheByQuery(SelectQuery $query);
00075         public function uncacheLists();
00077     }
00078 ?>

Generated on Sun Dec 9 21:56:23 2007 for onPHP by  doxygen 1.5.4