onPHP

TransparentDaoWorker Class Reference

 

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, $precision=8)
 getCachedByQuery (SelectQuery $query)

Public Member Functions

 get (ObjectQuery $oq)
 getById ($id)
 getByLogic (LogicalObject $logic)
 getByQuery (SelectQuery $query)
 getCustom (SelectQuery $query)
 getList (ObjectQuery $oq)
 getListByIds ($ids)
 getListByQuery (SelectQuery $query)
 getListByLogic (LogicalObject $logic)
 getPlainList ()
 getCustomList (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 getCustomRowList (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 getCountedList (ObjectQuery $oq)
 getQueryResult (SelectQuery $query)
 dropByIds ($ids)
 cacheById (Identifiable $object)
 uncacheById ($id)
 uncacheByIds ($ids)

Protected Member Functions

 gentlyGetByKey ($key)

Protected Attributes

 $handler = null

Detailed Description

Basis for transparent DAO workers.

See also:
VoodooDaoWorker for obscure and greedy worker.

SmartDaoWorker for less obscure locking-based worker.

FileSystemDaoWorker for Voodoo's filesystem-based child.

Definition at line 22 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  ) 

TransparentDaoWorker::getById ( id  ) 

Implements BaseDAO.

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

References cacheById(), cacheNullById(), DBField::create(), Expression::eq(), DBPool::getByDao(), 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 65 of file TransparentDaoWorker.class.php.

References getByQuery().

Here is the call graph for this function:

TransparentDaoWorker::getByQuery ( SelectQuery query  ) 

Implements BaseDAO.

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

References BaseDAO::cacheByQuery(), DBPool::getByDao(), 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 98 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  ) 

Implements BaseDAO.

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

References getListByQuery().

Here is the call graph for this function:

TransparentDaoWorker::getListByIds ( ids  ) 

Implements BaseDAO.

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

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

Here is the call graph for this function:

TransparentDaoWorker::getListByQuery ( SelectQuery query  ) 

Implements BaseDAO.

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

References BaseDAO::cacheListByQuery(), DBPool::getByDao(), 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 196 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 203 of file TransparentDaoWorker.class.php.

References getListByQuery().

Here is the call graph for this function:

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

Definition at line 213 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 239 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  ) 

Implements BaseDAO.

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

References getQueryResult().

Here is the call graph for this function:

TransparentDaoWorker::getQueryResult ( SelectQuery query  ) 

Implements BaseDAO.

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

References BaseDAO::cacheByQuery(), SQLFunction::create(), get(), DBPool::getByDao(), getCachedByQuery(), Cache::me(), and Cache::NOT_FOUND.

Referenced by getCountedList().

Here is the call graph for this function:

TransparentDaoWorker::dropByIds ( ids  ) 

Implements BaseDAO.

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

References OSQL::delete(), DBPool::getByDao(), Expression::in(), Cache::me(), and BaseDAO::uncacheLists().

Here is the call graph for this function:

TransparentDaoWorker::cacheById ( Identifiable object  ) 

Implements BaseDAO.

Definition at line 349 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  ) 

Reimplemented from BaseDaoWorker.

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

References BaseDAO::uncacheLists().

Here is the call graph for this function:

TransparentDaoWorker::uncacheByIds ( ids  ) 

Implements BaseDAO.

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

References Cache::me(), and BaseDAO::uncacheLists().

Here is the call graph for this function:

TransparentDaoWorker::getCachedByQuery ( SelectQuery query  ) 

Reimplemented from BaseDaoWorker.

Definition at line 386 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 394 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 402 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:


Member Data Documentation

TransparentDaoWorker::$handler = null [protected]

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


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

generated by doxygen-1.5.1
for onPHP at Sun Nov 12 00:39:44 2006