onPHP

TransparentDaoWorker Class Reference

 

TransparentDaoWorker Class Reference
[Root classes for building DAO hierarchies]

Basis for transparent DAO workers. More...

Inheritance diagram for TransparentDaoWorker:

List of all members.

Public Member Functions

 getById ($id)
 single object getters
 getByLogic (LogicalObject $logic)
 getByQuery (SelectQuery $query)
 getCustom (SelectQuery $query)
 getListByIds (array $ids)
 object's list getters
 getListByQuery (SelectQuery $query)
 getListByLogic (LogicalObject $logic)
 getPlainList ()
 getCustomList (SelectQuery $query)
 custom list getters
 getCustomRowList (SelectQuery $query)
 getQueryResult (SelectQuery $query)
 query result getters

Protected Member Functions

 gentlyGetByKey ($key)
 cacheById (Identifiable $object, $expires=Cache::EXPIRES_FOREVER)
 cachers
 getCachedByQuery (SelectQuery $query)
 internal helpers
 getCachedList (SelectQuery $query)
 cacheNullById ($id)
 keyToInt ($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]

TransparentDaoWorker::getById ( id  ) 

single object getters

Implements BaseDAO.

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

References cacheNullById(), and Cache::EXPIRES_FOREVER.

Referenced by getListByIds().

Here is the call graph for this function:

TransparentDaoWorker::getByLogic ( LogicalObject logic  ) 

Implements BaseDAO.

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

References Cache::EXPIRES_FOREVER.

TransparentDaoWorker::getByQuery ( SelectQuery query  ) 

Implements BaseDAO.

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

References CommonDaoWorker::cacheByQuery(), Cache::EXPIRES_FOREVER, and Cache::NOT_FOUND.

Here is the call graph for this function:

TransparentDaoWorker::getCustom ( SelectQuery query  ) 

Implements BaseDAO.

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

References CommonDaoWorker::cacheByQuery(), Cache::EXPIRES_FOREVER, and Cache::NOT_FOUND.

Here is the call graph for this function:

TransparentDaoWorker::getListByIds ( array $  ids  ) 

object's list getters

Implements BaseDAO.

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

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

Here is the call graph for this function:

TransparentDaoWorker::getListByQuery ( SelectQuery query  ) 

Implements BaseDAO.

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

References CommonDaoWorker::cacheListByQuery(), BaseDaoWorker::fetchList(), getCachedList(), Assert::isUnreachable(), and Cache::NOT_FOUND.

Here is the call graph for this function:

TransparentDaoWorker::getListByLogic ( LogicalObject logic  ) 

Implements BaseDAO.

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

References Cache::EXPIRES_FOREVER.

TransparentDaoWorker::getPlainList (  ) 

Implements BaseDAO.

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

References Cache::EXPIRES_FOREVER.

TransparentDaoWorker::getCustomList ( SelectQuery query  ) 

custom list getters

Implements BaseDAO.

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

References CommonDaoWorker::cacheByQuery(), Cache::EXPIRES_FOREVER, and Cache::NOT_FOUND.

Here is the call graph for this function:

TransparentDaoWorker::getCustomRowList ( SelectQuery query  ) 

Implements BaseDAO.

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

References CommonDaoWorker::cacheByQuery(), Cache::EXPIRES_FOREVER, and Cache::NOT_FOUND.

Here is the call graph for this function:

TransparentDaoWorker::getQueryResult ( SelectQuery query  ) 

query result getters

Implements BaseDAO.

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

References Cache::EXPIRES_FOREVER.

TransparentDaoWorker::cacheById ( Identifiable object,
expires = Cache::EXPIRES_FOREVER 
) [protected]

cachers

Reimplemented from CommonDaoWorker.

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

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

Referenced by SmartDaoWorker::cacheListByQuery().

Here is the call graph for this function:

TransparentDaoWorker::getCachedByQuery ( SelectQuery query  )  [protected]

internal helpers

Reimplemented from BaseDaoWorker.

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

References gentlyGetByKey().

Here is the call graph for this function:

TransparentDaoWorker::getCachedList ( SelectQuery query  )  [protected]

Definition at line 213 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 221 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:


The documentation for this class was generated from the following file:

generated by doxygen-1.5.5
for onPHP at Thu Aug 7 18:27:05 2008