TYPO3  7.6
QueryInterface.php
Go to the documentation of this file.
1 <?php
2 namespace TYPO3\CMS\Extbase\Persistence;
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 
334  public function setQuerySettings(Generic\QuerySettingsInterface $querySettings);
335 
343  public function getQuerySettings();
344 
351  public function count();
352 
363  public function getOrderings();
364 
371  public function getLimit();
372 
379  public function getOffset();
380 
387  public function getConstraint();
388 
398  public function isEmpty($propertyName);
399 
405  public function setSource(Generic\Qom\SourceInterface $source);
406 
412  public function getStatement();
413 }