SmartDaoWorker Class Reference
[Root classes for building DAO hierarchies]

Transparent caching DAO worker. More...

Inheritance diagram for SmartDaoWorker:

Inheritance graph
[legend]

List of all members.
 gentlyGetByKey ($key)
 internal helpers
 syncMap ($objectKey)
 checkMap ($objectKey)

Public Member Functions

 __construct (GenericDAO $dao)
 cacheByQuery (SelectQuery $query, $object)
 cachers
 cacheListByQuery (SelectQuery $query, $array)
 uncacheLists ()
 uncachers

Private Attributes

 $indexKey = null
 $watermark = null


Detailed Description

Transparent caching DAO worker.

See also:
CommonDaoWorker for manual-caching one.

VoodooDaoWorker for greedy though non-blocking brother.

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


Constructor & Destructor Documentation

SmartDaoWorker::__construct ( GenericDAO dao  ) 

Reimplemented from BaseDaoWorker.

Definition at line 26 of file SmartDaoWorker.class.php.

References Cache::me().

Here is the call graph for this function:


Member Function Documentation

SmartDaoWorker::cacheByQuery ( SelectQuery query,
object 
)

cachers

Implements BaseDAO.

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

References Cache::EXPIRES_FOREVER, QueryIdentification::getId(), TransparentDaoWorker::keyToInt(), Cache::me(), SemaphorePool::me(), and syncMap().

Here is the call graph for this function:

SmartDaoWorker::cacheListByQuery ( SelectQuery query,
array 
)

Implements BaseDAO.

Definition at line 68 of file SmartDaoWorker.class.php.

References TransparentDaoWorker::cacheById(), Cache::EXPIRES_FOREVER, Assert::isTrue(), TransparentDaoWorker::keyToInt(), SemaphorePool::me(), Cache::me(), Cache::NOT_FOUND, and syncMap().

Here is the call graph for this function:

SmartDaoWorker::uncacheLists (  ) 

uncachers

Implements BaseDAO.

Definition at line 107 of file SmartDaoWorker.class.php.

References TransparentDaoWorker::keyToInt(), SemaphorePool::me(), and Cache::me().

Here is the call graph for this function:

SmartDaoWorker::gentlyGetByKey ( key  )  [protected]

internal helpers

Reimplemented from TransparentDaoWorker.

Definition at line 136 of file SmartDaoWorker.class.php.

References checkMap(), and Cache::me().

Here is the call graph for this function:

SmartDaoWorker::syncMap ( objectKey  )  [private]

Definition at line 149 of file SmartDaoWorker.class.php.

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

Referenced by cacheByQuery(), and cacheListByQuery().

Here is the call graph for this function:

SmartDaoWorker::checkMap ( objectKey  )  [private]

Definition at line 164 of file SmartDaoWorker.class.php.

References TransparentDaoWorker::keyToInt(), Cache::me(), and SemaphorePool::me().

Referenced by gentlyGetByKey().

Here is the call graph for this function:


Member Data Documentation

SmartDaoWorker::$indexKey = null [private]

Definition at line 23 of file SmartDaoWorker.class.php.

SmartDaoWorker::$watermark = null [private]

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


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