DefaultPersistenceFacade Class Reference

Detailed Description

Default PersistenceFacade implementation.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 31 of file DefaultPersistenceFacade.php.

+ Inheritance diagram for DefaultPersistenceFacade:

Public Member Functions

 __construct (EventManager $eventManager, OutputStrategy $logStrategy)
 
 __destruct ()
 
 setMappers ($mappers)
 
 getKnownTypes ()
 
 isKnownType ($type)
 
 getFullyQualifiedType ($type)
 
 getSimpleType ($type)
 
 load (ObjectId $oid, $buildDepth=BuildDepth::SINGLE)
 
 create ($type, $buildDepth=BuildDepth::SINGLE)
 
 getLastCreatedOID ($type)
 
 getOIDs ($type, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
 
 getFirstOID ($type, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
 
 loadObjects ($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
 
 loadFirstObject ($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
 
 getTransaction ()
 
 getMapper ($type)
 
 setMapper ($type, PersistenceMapper $mapper)
 
 stateChanged (StateChangeEvent $event)
 

Constructor & Destructor Documentation

__construct ( EventManager  $eventManager,
OutputStrategy  $logStrategy 
)

Constructor.

Parameters
$eventManager
$logStrategyOutputStrategy used for logging persistence actions.

Definition at line 45 of file DefaultPersistenceFacade.php.

__destruct ( )

Destructor.

Definition at line 57 of file DefaultPersistenceFacade.php.

Member Function Documentation

setMappers (   $mappers)

Set the PersistentMapper instances.

Parameters
$mappersAssociative array with the fully qualified mapped class names as keys and the mapper instances as values

Definition at line 67 of file DefaultPersistenceFacade.php.

getKnownTypes ( )
isKnownType (   $type)
See also
PersistenceFacade::isKnownType()

Implements PersistenceFacade.

Definition at line 91 of file DefaultPersistenceFacade.php.

getFullyQualifiedType (   $type)
getSimpleType (   $type)
load ( ObjectId  $oid,
  $buildDepth = BuildDepth::SINGLE 
)
See also
PersistenceFacade::load()

Implements PersistenceFacade.

Definition at line 122 of file DefaultPersistenceFacade.php.

create (   $type,
  $buildDepth = BuildDepth::SINGLE 
)
See also
PersistenceFacade::create()

Implements PersistenceFacade.

Definition at line 141 of file DefaultPersistenceFacade.php.

getLastCreatedOID (   $type)
getOIDs (   $type,
  $criteria = null,
  $orderby = null,
PagingInfo  $pagingInfo = null 
)
See also
PersistenceFacade::getOIDs()

Implements PersistenceFacade.

Definition at line 172 of file DefaultPersistenceFacade.php.

getFirstOID (   $type,
  $criteria = null,
  $orderby = null,
PagingInfo  $pagingInfo = null 
)
loadObjects (   $type,
  $buildDepth = BuildDepth::SINGLE,
  $criteria = null,
  $orderby = null,
PagingInfo  $pagingInfo = null 
)
loadFirstObject (   $type,
  $buildDepth = BuildDepth::SINGLE,
  $criteria = null,
  $orderby = null,
PagingInfo  $pagingInfo = null 
)
getTransaction ( )
getMapper (   $type)
See also
PersistenceFacade::getMapper()

Implements PersistenceFacade.

Definition at line 238 of file DefaultPersistenceFacade.php.

setMapper (   $type,
PersistenceMapper  $mapper 
)
See also
PersistenceFacade::setMapper()

Implements PersistenceFacade.

Definition at line 251 of file DefaultPersistenceFacade.php.

stateChanged ( StateChangeEvent  $event)

Listen to StateChangeEvents.

Parameters
$eventStateChangeEvent instance

Definition at line 284 of file DefaultPersistenceFacade.php.