DefaultPersistenceFacade.php
123 if ($buildDepth < 0 && !in_array($buildDepth, array(BuildDepth::INFINITE, BuildDepth::SINGLE))) {
142 if ($buildDepth < 0 && !in_array($buildDepth, array(BuildDepth::INFINITE, BuildDepth::SINGLE, BuildDepth::REQUIRED))) {
184 public function getFirstOID($type, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null) {
200 public function loadObjects($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null) {
212 public function loadFirstObject($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null) {
getMapper($type)
Definition: DefaultPersistenceFacade.php:238
getFullyQualifiedType($type)
Definition: DefaultPersistenceFacade.php:98
const STATE_CLEAN
Definition: PersistentObject.php:26
EventManager is responsible for dispatching events to registered listeners.
Definition: EventManager.php:21
getSimpleType($type)
Definition: DefaultPersistenceFacade.php:111
OutputStrategy defines the interface for classes that write an object's content to a destination (cal...
Definition: OutputStrategy.php:22
IllegalArgumentException signals an exception in method arguments.
Definition: IllegalArgumentException.php:18
isKnownType($type)
Definition: DefaultPersistenceFacade.php:91
ObjectId is the unique identifier of an object.
Definition: ObjectId.php:27
getFirstOID($type, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
Definition: DefaultPersistenceFacade.php:184
StateChangeEvent signals a change of the state of a PersistentObject instance.
Definition: StateChangeEvent.php:22
getLastCreatedOID($type)
Definition: DefaultPersistenceFacade.php:161
PersistenceMapper defines the interface for all mapper classes.
Definition: PersistenceMapper.php:26
stateChanged(StateChangeEvent $event)
Listen to StateChangeEvents.
Definition: DefaultPersistenceFacade.php:284
static getInstance($name, $dynamicConfiguration=array())
Definition: ObjectFactory.php:39
PagingInfo contains information about a paged list.
Definition: PagingInfo.php:18
setMapper($type, PersistenceMapper $mapper)
Definition: DefaultPersistenceFacade.php:251
loadFirstObject($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
Definition: DefaultPersistenceFacade.php:212
getTransaction()
Definition: DefaultPersistenceFacade.php:228
Default PersistenceFacade implementation.
Definition: DefaultPersistenceFacade.php:31
getKnownTypes()
Definition: DefaultPersistenceFacade.php:84
load(ObjectId $oid, $buildDepth=BuildDepth::SINGLE)
Definition: DefaultPersistenceFacade.php:122
create($type, $buildDepth=BuildDepth::SINGLE)
Definition: DefaultPersistenceFacade.php:141
loadObjects($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
Definition: DefaultPersistenceFacade.php:200
PersistenceFacade defines the interface for PersistenceFacade implementations.
Definition: PersistenceFacade.php:23
getOIDs($type, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
Definition: DefaultPersistenceFacade.php:172
ConfigurationException signals an exception in the configuration.
Definition: ConfigurationException.php:18
__construct(EventManager $eventManager, OutputStrategy $logStrategy)
Constructor.
Definition: DefaultPersistenceFacade.php:45