AbstractQuery.php
44 * @param $buildDepth One of the BUILDDEPTH constants or a number describing the number of generations to load (except BuildDepth::REQUIRED)
46 * @param $orderby An array holding names of attributes to order by, maybe appended with 'ASC', 'DESC' (maybe null) (default: _null_)
68 * @param $buildDepth One of the BUILDDEPTH constants or a number describing the number of generations to load (except BuildDepth::REQUIRED)
70 * @param $orderby An array holding names of attributes to order by, maybe appended with 'ASC', 'DESC' (optional, default: _null_)
97 * @param $buildDepth One of the BUILDDEPTH constants or a number describing the number of generations to load (except BuildDepth::REQUIRED)
99 * @param $orderby An array holding names of attributes to order by, maybe appended with 'ASC', 'DESC' (optional, default: _null_)
103 protected abstract function buildQuery($buildDepth, $orderby=null, PagingInfo $pagingInfo=null);
108 * @param $buildDepth One of the BUILDDEPTH constants or a number describing the number of generations to load (except BuildDepth::REQUIRED)
113 protected function executeInternal(SelectStatement $selectStmt, $buildDepth, PagingInfo $pagingInfo=null) {
RDBMapper defines the interface for mapper classes that map to relational databases.
Definition: RDBMapper.php:24
PersistenceException signals an exception in the persistence service.
Definition: PersistenceException.php:18
buildQuery($buildDepth, $orderby=null, PagingInfo $pagingInfo=null)
Build the query.
static getConnection($type)
Get the database connection of the given node type.
Definition: AbstractQuery.php:163
execute($buildDepth, $orderby=null, $pagingInfo=null)
Execute the query.
Definition: AbstractQuery.php:50
getQueryType()
Get the name of the entity type that should be queried.
getLastQueryString()
Get the query last executed serialized to a string.
Definition: AbstractQuery.php:88
BuildDepth values are used to define the depth when loading object trees.
Definition: BuildDepth.php:19
static getMapper($type)
Get the mapper for a Node and check if it is a supported one.
Definition: AbstractQuery.php:174
getQueryString($buildDepth=BuildDepth::SINGLE, $orderby=null)
Get the query serialized to a string.
Definition: AbstractQuery.php:73
AbstractQuery is the base class for all query classes.
Definition: AbstractQuery.php:26
static getInstance($name, $dynamicConfiguration=[])
Definition: ObjectFactory.php:47
PagingInfo contains information about a paged list.
Definition: PagingInfo.php:18
executeInternal(SelectStatement $selectStmt, $buildDepth, PagingInfo $pagingInfo=null)
Execute the query and return the results.
Definition: AbstractQuery.php:113
PersistenceAction values are used to define actions on PersistentObject instances.
Definition: PersistenceAction.php:19
ObjectFactory implements the service locator pattern by wrapping a Factory instance and providing sta...
Definition: ObjectFactory.php:24