TransparentDaoWorker Class Reference
[Root classes for building DAO hierarchies]

Basis for transparent DAO workers. More...

Inheritance diagram for TransparentDaoWorker:

Inheritance graph
[legend]

List of all members.
 getCachedList (SelectQuery $query)
 cacheNullById ($id)
 keyToInt ($key)
 getCachedByQuery (SelectQuery $query)
 internal helpers

Public Member Functions

 get (ObjectQuery $oq)
 single object getters
 getById ($id)
 getByLogic (LogicalObject $logic)
 getByQuery (SelectQuery $query)
 getCustom (SelectQuery $query)
 getList (ObjectQuery $oq)
 object's list getters
 getListByIds ($ids)
 getListByQuery (SelectQuery $query)
 getListByLogic (LogicalObject $logic)
 getPlainList ()
 getCustomList (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 custom list getters
 getCustomRowList (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 getCountedList (ObjectQuery $oq)
 query result getters
 getQueryResult (SelectQuery $query)
 cacheById (Identifiable $object)
 cachers
 uncacheById ($id)
 uncachers
 uncacheByIds ($ids)

Protected Member Functions

 gentlyGetByKey ($key)


Detailed Description

Basis for transparent DAO workers.

See also:
VoodooDaoWorker for obscure and greedy worker.

SmartDaoWorker for less obscure locking-based worker.

Definition at line 21 of file TransparentDaoWorker.class.php.


Member Function Documentation

TransparentDaoWorker::gentlyGetByKey ( key  )  [abstract, protected]

Reimplemented in SmartDaoWorker, and VoodooDaoWorker.

Referenced by getCachedByQuery(), and getCachedList().

TransparentDaoWorker::get ( ObjectQuery oq  ) 

single object getters

Implements BaseDAO.

Definition at line 27 of file TransparentDaoWorker.class.php.

References getByQuery().

Here is the call graph for this function:

TransparentDaoWorker::getById ( id  ) 

Implements BaseDAO.

Definition at line 32 of file TransparentDaoWorker.class.php.

References cacheById(), cacheNullById(), DBField::create(), Expression::eq(), BaseDaoWorker::fetchObject(), BaseDaoWorker::getCachedById(), and Cache::NOT_FOUND.

Here is the call graph for this function:

TransparentDaoWorker::getByLogic ( LogicalObject logic  ) 

Implements BaseDAO.

Definition at line 63 of file TransparentDaoWorker.class.php.

References getByQuery().

Here is the call graph for this function:

TransparentDaoWorker::getByQuery ( SelectQuery query  ) 

Implements BaseDAO.

Definition at line 71 of file TransparentDaoWorker.class.php.

References BaseDAO::cacheByQuery(), BaseDaoWorker::fetchObject(), getCachedByQuery(), and Cache::NOT_FOUND.

Referenced by get(), and getByLogic().

Here is the call graph for this function:

TransparentDaoWorker::getCustom ( SelectQuery query  ) 

Implements BaseDAO.

Definition at line 92 of file TransparentDaoWorker.class.php.

References BaseDAO::cacheByQuery(), DBPool::getByDao(), getCachedByQuery(), and Cache::NOT_FOUND.

Here is the call graph for this function:

TransparentDaoWorker::getList ( ObjectQuery oq  ) 

object's list getters

Implements BaseDAO.

Definition at line 121 of file TransparentDaoWorker.class.php.

References getListByQuery().

Here is the call graph for this function:

TransparentDaoWorker::getListByIds ( ids  ) 

Implements BaseDAO.

Definition at line 126 of file TransparentDaoWorker.class.php.

References BaseDaoWorker::getCachedById(), getListByLogic(), Expression::in(), and Cache::NOT_FOUND.

Here is the call graph for this function:

TransparentDaoWorker::getListByQuery ( SelectQuery query  ) 

Implements BaseDAO.

Definition at line 161 of file TransparentDaoWorker.class.php.

References BaseDAO::cacheListByQuery(), BaseDaoWorker::fetchList(), getCachedList(), and Cache::NOT_FOUND.

Referenced by getList(), getListByLogic(), and getPlainList().

Here is the call graph for this function:

TransparentDaoWorker::getListByLogic ( LogicalObject logic  ) 

Implements BaseDAO.

Definition at line 182 of file TransparentDaoWorker.class.php.

References getListByQuery().

Referenced by getListByIds().

Here is the call graph for this function:

TransparentDaoWorker::getPlainList (  ) 

Implements BaseDAO.

Definition at line 189 of file TransparentDaoWorker.class.php.

References getListByQuery().

Here is the call graph for this function:

TransparentDaoWorker::getCustomList ( SelectQuery query,
expires = Cache::DO_NOT_CACHE 
)

custom list getters

Definition at line 199 of file TransparentDaoWorker.class.php.

References BaseDAO::cacheByQuery(), DBPool::getByDao(), getCachedByQuery(), and Cache::NOT_FOUND.

Here is the call graph for this function:

TransparentDaoWorker::getCustomRowList ( SelectQuery query,
expires = Cache::DO_NOT_CACHE 
)

Definition at line 224 of file TransparentDaoWorker.class.php.

References BaseDAO::cacheByQuery(), DBPool::getByDao(), getCachedByQuery(), and Cache::NOT_FOUND.

Here is the call graph for this function:

TransparentDaoWorker::getCountedList ( ObjectQuery oq  ) 

query result getters

Implements BaseDAO.

Definition at line 257 of file TransparentDaoWorker.class.php.

References getQueryResult().

Here is the call graph for this function:

TransparentDaoWorker::getQueryResult ( SelectQuery query  ) 

Implements BaseDAO.

Definition at line 262 of file TransparentDaoWorker.class.php.

References BaseDAO::cacheByQuery(), QueryResult::create(), SQLFunction::create(), BaseDaoWorker::fetchList(), DBPool::getByDao(), and getCachedByQuery().

Referenced by getCountedList().

Here is the call graph for this function:

TransparentDaoWorker::cacheById ( Identifiable object  ) 

cachers

Implements BaseDAO.

Definition at line 296 of file TransparentDaoWorker.class.php.

References Cache::EXPIRES_FOREVER, Identifiable::getId(), and Cache::me().

Referenced by VoodooDaoWorker::cacheListByQuery(), SmartDaoWorker::cacheListByQuery(), and getById().

Here is the call graph for this function:

TransparentDaoWorker::uncacheById ( id  ) 

uncachers

Reimplemented from BaseDaoWorker.

Definition at line 311 of file TransparentDaoWorker.class.php.

TransparentDaoWorker::uncacheByIds ( ids  ) 

Implements BaseDAO.

Definition at line 318 of file TransparentDaoWorker.class.php.

TransparentDaoWorker::getCachedByQuery ( SelectQuery query  ) 

internal helpers

Reimplemented from BaseDaoWorker.

Definition at line 329 of file TransparentDaoWorker.class.php.

References gentlyGetByKey().

Referenced by getByQuery(), getCustom(), getCustomList(), getCustomRowList(), and getQueryResult().

Here is the call graph for this function:

TransparentDaoWorker::getCachedList ( SelectQuery query  )  [protected]

Definition at line 337 of file TransparentDaoWorker.class.php.

References gentlyGetByKey().

Referenced by getListByQuery().

Here is the call graph for this function:

TransparentDaoWorker::cacheNullById ( id  )  [protected]

Definition at line 345 of file TransparentDaoWorker.class.php.

References Cache::EXPIRES_FOREVER, Cache::me(), and Cache::NOT_FOUND.

Referenced by getById().

Here is the call graph for this function:

TransparentDaoWorker::keyToInt ( key  )  [protected]

Definition at line 358 of file TransparentDaoWorker.class.php.

Referenced by VoodooDaoWorker::__construct(), SmartDaoWorker::cacheByQuery(), SmartDaoWorker::cacheListByQuery(), SmartDaoWorker::checkMap(), and SmartDaoWorker::uncacheLists().


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:58:39 2007 for onPHP by  doxygen 1.5.4