TYPO3 CMS  TYPO3_8-7
QueryInterface.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
21 
27 interface QueryInterface
28 {
34  const OPERATOR_EQUAL_TO = 1;
35 
42 
49 
56 
62  const OPERATOR_LESS_THAN = 3;
63 
70 
77 
84 
90  const OPERATOR_LIKE = 7;
91 
97  const OPERATOR_CONTAINS = 8;
98 
104  const OPERATOR_IN = 9;
105 
111  const OPERATOR_IS_NULL = 10;
112 
118  const OPERATOR_IS_EMPTY = 11;
119 
123  const ORDER_ASCENDING = 'ASC';
124  const ORDER_DESCENDING = 'DESC';
125 
133  public function getSource();
134 
142  public function execute($returnRawQueryResult = false);
143 
155  public function setOrderings(array $orderings);
156 
165  public function setLimit($limit);
166 
175  public function setOffset($offset);
176 
185  public function matching($constraint);
186 
196  public function logicalAnd($constraint1);
197 
207  public function logicalOr($constraint1);
208 
216  public function logicalNot(ConstraintInterface $constraint);
217 
231  public function equals($propertyName, $operand, $caseSensitive = true);
232 
245  public function like($propertyName, $operand, $caseSensitive = true);
246 
259  public function contains($propertyName, $operand);
260 
271  public function in($propertyName, $operand);
272 
282  public function lessThan($propertyName, $operand);
283 
293  public function lessThanOrEqual($propertyName, $operand);
294 
304  public function greaterThan($propertyName, $operand);
305 
315  public function greaterThanOrEqual($propertyName, $operand);
316 
323  public function getType();
324 
333  public function setQuerySettings(Generic\QuerySettingsInterface $querySettings);
334 
342  public function getQuerySettings();
343 
350  public function count();
351 
362  public function getOrderings();
363 
370  public function getLimit();
371 
378  public function getOffset();
379 
386  public function getConstraint();
387 
397  public function isEmpty($propertyName);
398 
404  public function setSource(Generic\Qom\SourceInterface $source);
405 
411  public function getStatement();
412 }
like($propertyName, $operand, $caseSensitive=true)
setQuerySettings(Generic\QuerySettingsInterface $querySettings)
equals($propertyName, $operand, $caseSensitive=true)
lessThanOrEqual($propertyName, $operand)
logicalNot(ConstraintInterface $constraint)
greaterThanOrEqual($propertyName, $operand)
execute($returnRawQueryResult=false)
setSource(Generic\Qom\SourceInterface $source)