StringQuery.php
40 * $queryStr = "Author.name LIKE '%ingo%' AND (Recipe.name LIKE '%Salat%' OR Recipe.portions = 4)";
45 * $queryStr = "(Profile.keyword1=in=8,1|Profile.keyword2=in=8,2|Profile.keywords3=in=8,3)&Profile.salary=gte=1000";
133 throw new IllegalArgumentException("There is no connection between '".$queryType."' and '".$typeOrRole."'.");
137 throw new IllegalArgumentException("There is more than one connection between '".$queryType."' and '".$typeOrRole."'. ".
157 throw new IllegalArgumentException("Please specify the type/role to that the attribute '".$token."' belongs: e.g. Author.name.");
200 * (Profile.keyword1=in=8,1|Profile.keyword2=in=8,2|Profile.keywords3=in=8,3)&Profile.yearlySalary=gte=1000
216 $query = preg_replace_callback('/([^ <>!=|&\(\)]+) ?'.$operator.' ?([^ <>!=|&\(\)]+)/', function ($match)
225 $persistenceFacade->getFullyQualifiedType($typeOrRole) == $mapper->getType() && $mapper->hasAttribute($attribute)) {
230 $attributeDef = $otherMapper->hasAttribute($attribute) ? $otherMapper->getAttribute($attribute) : null;
parseRQL($query)
Parse the given query encoded in RQL (https://github.com/persvr/rql), e.g.
Definition: StringQuery.php:204
static getConnections($type, $otherRole, $otherType, $hierarchyType='all')
Get the shortest paths that connect a type to another type.
Definition: NodeUtil.php:39
static splitQuoted($string, $delim='//', $quoteChr='"', $preserve=false)
Split string preserving quoted strings code based on: http://www.php.net/manual/en/function....
Definition: StringUtil.php:341
PersistenceException signals an exception in the persistence service.
Definition: PersistenceException.php:18
IllegalArgumentException signals an exception in method arguments.
Definition: IllegalArgumentException.php:18
StringUtil provides support for string manipulation.
Definition: StringUtil.php:18
setRQLConditionString($condition)
Set the query condition string as RQL.
Definition: StringQuery.php:77
StringQuery executes queries from a string representation.
Definition: StringQuery.php:53
static getMapper($type)
Get the mapper for a Node and check if it is a supported one.
Definition: AbstractQuery.php:174
AbstractQuery is the base class for all query classes.
Definition: AbstractQuery.php:26
processOrderBy($orderby, SelectStatement $selectStmt)
Process an object template.
Definition: ObjectQuery.php:479
static mapToDatabase($type, $valueName)
Map a application type and value name to the appropriate database names.
Definition: StringQuery.php:273
processObjectTemplate(PersistentObject $tpl, SelectStatement $selectStmt)
Process an object template.
Definition: ObjectQuery.php:350
static getInstance($name, $dynamicConfiguration=[])
Definition: ObjectFactory.php:47
PagingInfo contains information about a paged list.
Definition: PagingInfo.php:18
ObjectFactory implements the service locator pattern by wrapping a Factory instance and providing sta...
Definition: ObjectFactory.php:24
buildQuery($buildDepth, $orderby=null, PagingInfo $pagingInfo=null)
Definition: StringQuery.php:84
ObjectQuery implements a template based object query.
Definition: ObjectQuery.php:106