DefaultPersistenceFacade.php
153 if ($buildDepth < 0 && !in_array($buildDepth, [BuildDepth::INFINITE, BuildDepth::SINGLE, BuildDepth::REQUIRED])) {
192 public function getFirstOID($type, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null) {
208 public function loadObjects($typeOrTypes, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null) {
227 public function loadFirstObject($typeOrTypes, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null) {
getKnownTypes()
Definition: DefaultPersistenceFacade.php:95
OutputStrategy defines the interface for classes that write an object's content to a destination (cal...
Definition: OutputStrategy.php:22
isKnownType($type)
Definition: DefaultPersistenceFacade.php:102
EventManager is responsible for dispatching events to registered listeners.
Definition: EventManager.php:21
getTransaction()
Definition: DefaultPersistenceFacade.php:243
calculateSimpleType($type)
Calculate the simple type name for a given fully qualified type name.
Definition: DefaultPersistenceFacade.php:318
loadFirstObject($typeOrTypes, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
Definition: DefaultPersistenceFacade.php:227
IllegalArgumentException signals an exception in method arguments.
Definition: IllegalArgumentException.php:18
StateChangeEvent signals a change of the state of a PersistentObject instance.
Definition: StateChangeEvent.php:22
PersistenceMapper defines the interface for all mapper classes.
Definition: PersistenceMapper.php:26
getFirstOID($type, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
Definition: DefaultPersistenceFacade.php:192
ObjectId is the unique identifier of an object.
Definition: ObjectId.php:28
UnionQueryProvider is used to provide queries to a union query.
Definition: UnionQueryProvider.php:18
BuildDepth values are used to define the depth when loading object trees.
Definition: BuildDepth.php:19
Default PersistenceFacade implementation.
Definition: DefaultPersistenceFacade.php:35
getLastCreatedOID($type)
Definition: DefaultPersistenceFacade.php:169
ConfigurationException signals an exception in the configuration.
Definition: ConfigurationException.php:18
getMapper($type)
Definition: DefaultPersistenceFacade.php:253
getFullyQualifiedType($type)
Definition: DefaultPersistenceFacade.php:109
PersistenceFacade defines the interface for PersistenceFacade implementations.
Definition: PersistenceFacade.php:23
getOIDs($type, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
Definition: DefaultPersistenceFacade.php:180
__construct(EventManager $eventManager, OutputStrategy $logStrategy)
Constructor.
Definition: DefaultPersistenceFacade.php:49
stateChanged(StateChangeEvent $event)
Listen to StateChangeEvents.
Definition: DefaultPersistenceFacade.php:299
static getInstance($name, $dynamicConfiguration=[])
Definition: ObjectFactory.php:47
UnionQuery combines multiple query results to allow for sorting and paginating over different queries...
Definition: UnionQuery.php:23
setMapper($type, PersistenceMapper $mapper)
Definition: DefaultPersistenceFacade.php:266
const STATE_CLEAN
Definition: PersistentObject.php:25
getSimpleType($type)
Definition: DefaultPersistenceFacade.php:122
create($type, $buildDepth=BuildDepth::SINGLE)
Definition: DefaultPersistenceFacade.php:152
PagingInfo contains information about a paged list.
Definition: PagingInfo.php:18
PersistentObject defines the interface of all persistent objects.
Definition: PersistentObject.php:23
static execute(UnionQueryProvider $queryProvider, $buildDepth=BuildDepth::SINGLE, $orderby=null, PagingInfo $pagingInfo=null)
Execute the provided queries.
Definition: UnionQuery.php:33
ObjectFactory implements the service locator pattern by wrapping a Factory instance and providing sta...
Definition: ObjectFactory.php:24
loadObjects($typeOrTypes, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
Definition: DefaultPersistenceFacade.php:208
ObjectComparator is used to compare persistent objects by given criterias.
Definition: ObjectComparator.php:47
DefaultUnionQueryProvider provides queries for multiple types using the PersistentFacade::loadObjects...
Definition: DefaultUnionQueryProvider.php:23
load(ObjectId $oid, $buildDepth=BuildDepth::SINGLE)
Definition: DefaultPersistenceFacade.php:133