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 ($ids)
 object's list getters
 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)
 getQueryResult (SelectQuery $query)
 query result getters
 uncacheById ($id)
 uncachers
 uncacheByIds ($ids)

Protected Member Functions

 gentlyGetByKey ($key)
 cacheById (Identifiable $object)
 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]

Reimplemented in SmartDaoWorker, and VoodooDaoWorker.

Referenced by getCachedByQuery(), and getCachedList().

TransparentDaoWorker::getById ( id  ) 

single object getters

Implements BaseDAO.

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

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

Referenced by getListByIds().

Here is the call graph for this function:

TransparentDaoWorker::getByLogic ( LogicalObject logic  ) 

Implements BaseDAO.

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

References getByQuery().

Here is the call graph for this function:

TransparentDaoWorker::getByQuery ( SelectQuery query  ) 

Implements BaseDAO.

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

References BaseDaoWorker::cachedFetchObject(), getCachedByQuery(), and Cache::NOT_FOUND.

Referenced by getByLogic().

Here is the call graph for this function:

TransparentDaoWorker::getCustom ( SelectQuery query  ) 

Implements BaseDAO.

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

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

Here is the call graph for this function:

TransparentDaoWorker::getListByIds ( ids  ) 

object's list getters

Implements BaseDAO.

Definition at line 116 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 148 of file TransparentDaoWorker.class.php.

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

Referenced by getListByLogic(), and getPlainList().

Here is the call graph for this function:

TransparentDaoWorker::getListByLogic ( LogicalObject logic  ) 

Implements BaseDAO.

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

References getListByQuery().

Here is the call graph for this function:

TransparentDaoWorker::getPlainList (  ) 

Implements BaseDAO.

Definition at line 176 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 186 of file TransparentDaoWorker.class.php.

References DBPool::getByDao(), getCachedByQuery(), Assert::isUnreachable(), and Cache::NOT_FOUND.

Here is the call graph for this function:

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

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

References DBPool::getByDao(), getCachedByQuery(), Assert::isUnreachable(), and Cache::NOT_FOUND.

Here is the call graph for this function:

TransparentDaoWorker::getQueryResult ( SelectQuery query  ) 

query result getters

Implements BaseDAO.

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

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

Here is the call graph for this function:

TransparentDaoWorker::cacheById ( Identifiable object  )  [protected]

cachers

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

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

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

Here is the call graph for this function:

TransparentDaoWorker::uncacheById ( id  ) 

uncachers

Reimplemented from BaseDaoWorker.

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

TransparentDaoWorker::uncacheByIds ( ids  ) 

Implements BaseDAO.

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

TransparentDaoWorker::getCachedByQuery ( SelectQuery query  )  [protected]

internal helpers

Reimplemented from BaseDaoWorker.

Definition at line 315 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 323 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 331 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.4
for onPHP at Mon Jan 21 03:41:08 2008