onPHP

GenericDAO Class Reference

 

GenericDAO Class Reference
[Root classes for building DAO hierarchies]

Basis of all DAO's. More...

Inheritance diagram for GenericDAO:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 getTable ()
 getObjectName ()
 createObject ()
 getLinkName ()
 Returns link name which is used to get actual DB-link from DBPool, returning null by default for single-source projects.
 getIdName ()
 getSequence ()
 makeSelectHead ()
 
Returns:
SelectQuery

 getMapping ()
 getFields ()
 get (ObjectQuery $oq, $expires=Cache::DO_NOT_CACHE)
 boring delegates
 getById ($id, $expires=Cache::EXPIRES_MEDIUM)
 getByLogic (LogicalObject $logic, $expires=Cache::DO_NOT_CACHE)
 getByQuery (SelectQuery $query, $expires=Cache::EXPIRES_MEDIUM)
 getCustom (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 getList (ObjectQuery $oq, $expires=Cache::DO_NOT_CACHE)
 getListByIds ($ids, $expires=Cache::EXPIRES_MEDIUM)
 getListByQuery (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 getListByLogic (LogicalObject $logic, $expires=Cache::DO_NOT_CACHE)
 getPlainList ($expires=Cache::EXPIRES_MEDIUM)
 getCustomList (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 getCustomRowList (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 getCountedList (ObjectQuery $oq, $expires=Cache::DO_NOT_CACHE)
 getQueryResult (SelectQuery $query, $expires=Cache::DO_NOT_CACHE)
 cacheById (Identifiable $object, $expires=Cache::EXPIRES_MEDIUM)
 cacheByQuery (SelectQuery $query, $object, $expires=Cache::DO_NOT_CACHE)
 cacheListByQuery (SelectQuery $query, $array)
 getCachedById ($id)
 cache getters
 getCachedByQuery (SelectQuery $query)
 drop (Identifiable $object)
 erasers
 dropById ($id)
 dropByIds ($ids)
 uncacheById ($id)
 uncachers
 uncacheByIds ($ids)
 uncacheByQuery (SelectQuery $query)
 uncacheLists ()

Protected Member Functions

 makeObject (&$array, $prefix=null)
 checkObjectType (Identifiable $object)

Protected Attributes

 $mapping = array()
 $identityMap = array()
 $link = null
 $selectHead = null

Detailed Description

Basis of all DAO's.

Definition at line 18 of file GenericDAO.class.php.


Member Function Documentation

GenericDAO::makeObject ( &$  array,
prefix = null 
) [abstract, protected]

Reimplemented in ComplexBuilderDAO.

GenericDAO::createObject (  ) 

Definition at line 33 of file GenericDAO.class.php.

References getObjectName().

Here is the call graph for this function:

GenericDAO::getLinkName (  ) 

Returns link name which is used to get actual DB-link from DBPool, returning null by default for single-source projects.

See also:
DBPool

Definition at line 46 of file GenericDAO.class.php.

GenericDAO::getIdName (  ) 

GenericDAO::getSequence (  ) 

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

References getTable().

Referenced by StorableDAO::add().

Here is the call graph for this function:

GenericDAO::makeSelectHead (  ) 

Returns:
SelectQuery

Definition at line 64 of file GenericDAO.class.php.

References getFields(), getTable(), and OSQL::select().

Referenced by ObjectQuery::toSelectQuery().

Here is the call graph for this function:

GenericDAO::getMapping (  ) 

Deprecated:
by ComplexBuilderDAO::getMapping()

Reimplemented in ComplexBuilderDAO.

Definition at line 81 of file GenericDAO.class.php.

Referenced by getFields(), and ProtoDAO::guessAtom().

GenericDAO::getFields (  ) 

Deprecated:
by ComplexBuilderDAO::getFields()

Reimplemented in ComplexBuilderDAO.

Definition at line 90 of file GenericDAO.class.php.

References getMapping(), and getObjectName().

Referenced by ProtoDAO::fetchCollections(), and makeSelectHead().

Here is the call graph for this function:

GenericDAO::get ( ObjectQuery oq,
expires = Cache::DO_NOT_CACHE 
)

boring delegates

Definition at line 106 of file GenericDAO.class.php.

References Cache::worker().

Referenced by ProtoDAO::fetchCollections(), and ProtoDAO::processPath().

Here is the call graph for this function:

GenericDAO::getById ( id,
expires = Cache::EXPIRES_MEDIUM 
)

Definition at line 111 of file GenericDAO.class.php.

References Cache::worker().

Here is the call graph for this function:

GenericDAO::getByLogic ( LogicalObject logic,
expires = Cache::DO_NOT_CACHE 
)

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

References Cache::worker().

Here is the call graph for this function:

GenericDAO::getByQuery ( SelectQuery query,
expires = Cache::EXPIRES_MEDIUM 
)

Definition at line 128 of file GenericDAO.class.php.

References Cache::worker().

Here is the call graph for this function:

GenericDAO::getCustom ( SelectQuery query,
expires = Cache::DO_NOT_CACHE 
)

Definition at line 135 of file GenericDAO.class.php.

References Cache::worker().

Here is the call graph for this function:

GenericDAO::getList ( ObjectQuery oq,
expires = Cache::DO_NOT_CACHE 
)

Definition at line 142 of file GenericDAO.class.php.

References Cache::worker().

Here is the call graph for this function:

GenericDAO::getListByIds ( ids,
expires = Cache::EXPIRES_MEDIUM 
)

Definition at line 147 of file GenericDAO.class.php.

References Cache::worker().

Here is the call graph for this function:

GenericDAO::getListByQuery ( SelectQuery query,
expires = Cache::DO_NOT_CACHE 
)

Definition at line 154 of file GenericDAO.class.php.

References Cache::worker().

Here is the call graph for this function:

GenericDAO::getListByLogic ( LogicalObject logic,
expires = Cache::DO_NOT_CACHE 
)

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

References Cache::worker().

Here is the call graph for this function:

GenericDAO::getPlainList ( expires = Cache::EXPIRES_MEDIUM  ) 

Definition at line 168 of file GenericDAO.class.php.

References Cache::worker().

Here is the call graph for this function:

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

Definition at line 173 of file GenericDAO.class.php.

References Cache::worker().

Here is the call graph for this function:

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

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

References Cache::worker().

Here is the call graph for this function:

GenericDAO::getCountedList ( ObjectQuery oq,
expires = Cache::DO_NOT_CACHE 
)

Definition at line 187 of file GenericDAO.class.php.

References Cache::worker().

Here is the call graph for this function:

GenericDAO::getQueryResult ( SelectQuery query,
expires = Cache::DO_NOT_CACHE 
)

Definition at line 194 of file GenericDAO.class.php.

References Cache::worker().

Here is the call graph for this function:

GenericDAO::cacheById ( Identifiable object,
expires = Cache::EXPIRES_MEDIUM 
)

Definition at line 201 of file GenericDAO.class.php.

References Cache::worker().

Here is the call graph for this function:

GenericDAO::cacheByQuery ( SelectQuery query,
object,
expires = Cache::DO_NOT_CACHE 
)

Definition at line 208 of file GenericDAO.class.php.

References Cache::worker().

Here is the call graph for this function:

GenericDAO::cacheListByQuery ( SelectQuery query,
array 
)

Implements BaseDAO.

Definition at line 217 of file GenericDAO.class.php.

References Cache::worker().

Here is the call graph for this function:

GenericDAO::getCachedById ( id  ) 

cache getters

Implements BaseDAO.

Definition at line 222 of file GenericDAO.class.php.

References Cache::worker().

Here is the call graph for this function:

GenericDAO::getCachedByQuery ( SelectQuery query  ) 

Implements BaseDAO.

Definition at line 227 of file GenericDAO.class.php.

References Cache::worker().

Here is the call graph for this function:

GenericDAO::drop ( Identifiable object  ) 

erasers

Implements BaseDAO.

Definition at line 232 of file GenericDAO.class.php.

References checkObjectType(), and dropById().

Here is the call graph for this function:

GenericDAO::dropById ( id  ) 

Implements BaseDAO.

Definition at line 239 of file GenericDAO.class.php.

References Cache::worker().

Referenced by drop().

Here is the call graph for this function:

GenericDAO::dropByIds ( ids  ) 

Implements BaseDAO.

Definition at line 246 of file GenericDAO.class.php.

References Cache::worker().

Here is the call graph for this function:

GenericDAO::uncacheById ( id  ) 

uncachers

Implements BaseDAO.

Definition at line 254 of file GenericDAO.class.php.

References Cache::worker().

Referenced by StorableDAO::inject().

Here is the call graph for this function:

GenericDAO::uncacheByIds ( ids  ) 

Implements BaseDAO.

Definition at line 261 of file GenericDAO.class.php.

References Cache::worker().

Here is the call graph for this function:

GenericDAO::uncacheByQuery ( SelectQuery query  ) 

Implements BaseDAO.

Definition at line 269 of file GenericDAO.class.php.

References Cache::worker().

Here is the call graph for this function:

GenericDAO::uncacheLists (  ) 

Implements BaseDAO.

Definition at line 274 of file GenericDAO.class.php.

References Cache::worker().

Here is the call graph for this function:

GenericDAO::checkObjectType ( Identifiable object  )  [protected]

Definition at line 280 of file GenericDAO.class.php.

References getObjectName(), and Assert::isTrue().

Referenced by drop(), and StorableDAO::inject().

Here is the call graph for this function:


Member Data Documentation

GenericDAO::$mapping = array() [protected]

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

Referenced by ProtoDAO::guessAtom().

GenericDAO::$identityMap = array() [protected]

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

GenericDAO::$link = null [protected]

Definition at line 25 of file GenericDAO.class.php.

GenericDAO::$selectHead = null [protected]

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


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

generated by doxygen-1.5.1
for onPHP at Mon Apr 30 23:11:35 2007