AbstractQuery.php
39 * @param $buildDepth One of the BUILDDEPTH constants or a number describing the number of generations to load (except BuildDepth::REQUIRED)
41 * @param $orderby An array holding names of attributes to order by, maybe appended with 'ASC', 'DESC' (maybe null) (default: _null_)
54 * @param $orderby An array holding names of attributes to order by, maybe appended with 'ASC', 'DESC' (optional, default: _null_)
81 * @param $orderby An array holding names of attributes to order by, maybe appended with 'ASC', 'DESC' (optional, default: _null_)
90 * @param $buildDepth One of the BUILDDEPTH constants or a number describing the number of generations to load (except BuildDepth::REQUIRED)
95 protected function executeInternal(SelectStatement $selectStmt, $buildDepth, PagingInfo $pagingInfo=null) {
172 throw new PersistenceException($message->getText('Only PersistenceMappers of type RDBMapper are supported.'));
execute($buildDepth, $orderby=null, $pagingInfo=null)
Execute the query.
Definition: AbstractQuery.php:45
static checkMapper(PersistenceMapper $mapper)
Check if a mapper is a supported one.
Definition: AbstractQuery.php:169
RDBMapper maps objects of one type to a relational database schema.
Definition: RDBMapper.php:49
PersistenceMapper defines the interface for all mapper classes.
Definition: PersistenceMapper.php:26
getLastQueryString()
Get the query last executed serialized to a string.
Definition: AbstractQuery.php:72
static getInstance($name, $dynamicConfiguration=array())
Definition: ObjectFactory.php:39
PagingInfo contains information about a paged list.
Definition: PagingInfo.php:18
getQueryType()
Get the name of the type that should be queried.
static getConnection($type)
Get the database connection of the given node type.
Definition: AbstractQuery.php:146
executeInternal(SelectStatement $selectStmt, $buildDepth, PagingInfo $pagingInfo=null)
Execute the query and return the results.
Definition: AbstractQuery.php:95
PersistenceException signals an exception in the persistence service.
Definition: PersistenceException.php:18
static getMapper($type)
Get the mapper for a Node and check if it is a supported one.
Definition: AbstractQuery.php:157
buildQuery($orderby=null, PagingInfo $pagingInfo=null)
Build the query.
AbstractQuery is the base class for all query classes.
Definition: AbstractQuery.php:27